当前位置:网站首页>redis数据持久化
redis数据持久化
2022-04-21 12:47:00 【子书少卿】
目录
RDB
将数据生成快照存储到硬盘
手动触发
1>save命令:阻塞进程,保存完之后其他服务才可用;数据量大会有些慢(不推荐使用)
2> bgsave命令:会创建一个子进程,由子进程去完成,完成后退出(父进程创建fork的时候还是会阻塞主进程,但是微秒级的时间很短)
自动触发
![]() 可以配置多个规则 |
文件处理
![]() ![]() ![]() |
优缺点
![]() |
AOF
开启AOF
默认是不开启的,可以通过修改配置文件开启
![]() |
配置文件名
![]() |
工作流程
:(使用缓冲的性能优于直接写入磁盘)
![]() |
命令的写入
:如果没有到保存的时候,命令是以AOF缓冲区的形式追加到文本中,
![]() |
文件同步
:(默认为中间)
![]() |
重写机制
![]() |
启动过程
:首先判断是否开启AOF
![]() |
文件校验
![]() |
参考自:https://download.csdn.net/learn/26150/324222?spm=1002.2001.3001.4143
版权声明
本文为[子书少卿]所创,转载请带上原文链接,感谢
https://shaoqing.blog.csdn.net/article/details/124309685
边栏推荐
- Pytroch deep learning run cifar10 data set
- Laugh to death! The programmer's life extension guide is open source
- 高并发IO的底层原理
- AGP Transform API 被废弃意味着什么?
- 利用Cisco配置VRRP(虚拟路由器冗余协议)
- Pytroch 深度学习 跑CIFAR10数据集
- 最佳实践 | 通过使用 Jira Service Management 改进 HR 工作流程
- 基于同态加密的PSI开源库-1
- I think you can tear the linked list by hand (1)
- Share some Chrome browser plug-ins I use frequently, each of which is easy to use
猜你喜欢

4年Android开发13K,刷完这份1307页Android-面试全套真题解析,跳槽涨薪15K

CEPH practice (I) - Introduction to distributed storage and overview of its principle and architecture

Chris LATTNER, father of llvm: the golden age of compilers

Redis数据库集群(主从复制、哨兵、Cluster)

mysql数据库操作语句练习

How to improve the ability of video playback of Jenkins

选择排序法

基于同态加密的PSI开源库-1

制造业数字化转型存在哪些问题

open-mmlab / mmpose安装、使用教程
随机推荐
一文了解全面静态代码分析
Binary tree traversal series 02 Morris traversal
Scala installation and development environment configuration tutorial
挖财的证券账户怎么开户?在券商开户是不是比较安全一些?
AcWing 1854. Equation Derivation for solving promotion counting problem
研讨会回放视频:如何提升Jenkins能力,使其成为真正的DevOps平台
2022年一级注册建筑师考试建筑物理与设备复习题及答案
Russian Foreign Ministry official: the special military operation in Ukraine will end after the security threat caused by NATO is eliminated
Is the securities account opened by caibang safe? Or is it safer to open in securities companies?
Kubernetes service discovery monitoring apiserver
Three. JS learning project -- 3D data visualization of anti US aggression and aid Korea
Pytest multi file execution sequence control
Package rpart of decision regression tree implemented by R language
【无标题】
逆波兰表达式
2022语言与智能技术竞赛再升级,推出NLP四大前沿任务
Teach you to easily solve CSRF Cross Site Request Forgery Attack
Controlling the release and introduction of rip routing based on Routing
How does electron net send a post request
Seven ways of text reading based on C

可以配置多个规则










