当前位置:网站首页>Acid of redis
Acid of redis
2022-06-26 16:07:00 【Hua Weiyun】
Redis Of ACID
Atomicity
because redis Contains the transaction queue Save command , So it's atomic . All commands in the transaction queue will be executed or not executed at all . If an error occurs at runtime , be redis Transaction rollback is not supported . An error in a command will not affect the execution of the next command .
Uniformity
redis Ensure the consistency of transactions from three aspects
When joining the queue, the command does not exist or the format is wrong . redis This command will not be placed in the transaction queue .
If an error occurs while the command is running , Then these error commands will not make any changes to the database , To ensure consistency
If the server stops , After the server is not persisted and restarted , Obvious data match . stay RDB In mode , According to the existing RDB Recover data from files for consistency . stay AOF In mode , adopt AOF File consistency .
Isolation,
Redis It's isolated , Because it executes transactions on a single thread , And execute transactions serially
persistence
Obviously , If redis Not persistent , Transactions are not persistent . stay RDB In mode , Not immediately BGSAVE preservation , Therefore, there is no guarantee of persistence . stay AOF In mode ,appendfsync Option set to always, The program calls the synchronization function after executing the command to ensure the persistence .
summary
This is it. redis Of ACID, It has atomicity, consistency and isolation , stay appendfsync Option set to always There is persistence when .redis Transaction rollback is not supported , and mysql Of undolog The log guarantees the rollback operation of the transaction ,redo log Save the thinnest data , So as to ensure the persistence of transactions ,binlog Information used to record the updated data of the database , The information of query data will not be recorded , It is mainly used for data recovery and master-slave replication when data is down .
redis There are probably so many things to do , Let's get to know redis principle , Apply it to work and study together , Thank you for your support and encouragement , Continue refueling , Continue to work hard ,redis Very important , We need to know more about it .
️ Thank you for your
If you think this is helpful for you :
- Welcome to follow me ️, give the thumbs-up , Comment on , forward
- Focus on
Panpan small class, Push good articles for you regularly , There are also group chat and irregular lottery activities , You can say what you want , Communicate with the great gods , Learning together . - If there is anything inappropriate, you are welcome to criticize and correct .
边栏推荐
- C语言读取数据
- Practice of federal learning in Tencent micro vision advertising
- Audio and video learning (II) -- frame rate, code stream and resolution
- Solana capacity expansion mechanism analysis (2): an extreme attempt to sacrifice availability for efficiency | catchervc research
- 【力扣刷题】11.盛最多水的容器//42.接雨水
- Net based on girdview control to delete and edit row data
- Handwritten numeral recognition, run your own picture with the saved model
- Development, deployment and online process of NFT project (2)
- 3. Keras version model training
- 11 introduction to CNN
猜你喜欢

JS creative icon navigation menu switch background color

Ten thousand words! In depth analysis of the development trend of multi-party data collaborative application and privacy computing under the data security law

11 cnn简介

This year, the AI score of college entrance examination English is 134. The research of Fudan Wuda alumni is interesting

Big talk Domain Driven Design -- presentation layer and others

Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»

NFT 项目的开发、部署、上线的流程(1)

Development, deployment and online process of NFT project (1)

Stepn novice introduction and advanced

Solana capacity expansion mechanism analysis (2): an extreme attempt to sacrifice availability for efficiency | catchervc research
随机推荐
「幹貨」NFT 上中下遊產業鏈全景分析
"C language" question set of ⑩
2 three modeling methods
5000字解析:实战化场景下的容器安全攻防之道
LeetCode 单周赛298,前三题
若依微服务特殊字符串被过滤的解决办法
基于 MATLAB的自然过渡配音处理方案探究
6 custom layer
Svg capital letter a animation JS effect
Audio and video learning (II) -- frame rate, code stream and resolution
H5 close the current page, including wechat browser (with source code)
NFT合约基础知识讲解
Nanopi duo2 connection WiFi
4 自定义模型训练
【力扣刷题】11.盛最多水的容器//42.接雨水
Keepalived 实现 Redis AutoFailover (RedisHA)1
Unlock the value of data fusion! Tencent angel powerfl won the "leading scientific and Technological Achievement Award" at the 2021 digital Expo
JS教程之使用 ElectronJS 桌面应用程序打印贴纸/标签
首例猪心移植细节全面披露:患者体内发现人类疱疹病毒,死后心脏重量翻倍,心肌细胞纤维化丨团队最新论文...
C. Inversion Graph