当前位置:网站首页>Redis 持久化机制
Redis 持久化机制
2022-07-06 15:35:00 【InfoQ】
怎么保证 Redis 挂掉之后再重启数据可以进行恢复?
什么是 RDB 持久化?
redis.confsave 900 1 #在900秒(15分钟)之后,如果至少有1个key发生变化,Redis就会自动触发BGSAVE命令创建快照。
save 300 10 #在300秒(5分钟)之后,如果至少有10个key发生变化,Redis就会自动触发BGSAVE命令创建快照。
save 60 10000 #在60秒(1分钟)之后,如果至少有10000个key发生变化,Redis就会自动触发BGSAVE命令创建快照。
什么是 AOF 持久化?
appendonly yes
server.aof_bufappendfsyncappendonly.aofappendfsync always #每次有数据修改发生时都会写入AOF文件,这样会严重降低Redis的速度
appendfsync everysec #每秒钟同步一次,显式地将多个写命令同步到硬盘
appendfsync no #让操作系统决定何时进行同步appendfsync everysec边栏推荐
- 【LeetCode】19、 删除链表的倒数第 N 个结点
- Rust knowledge mind map XMIND
- Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
- Cloud native technology container knowledge points
- View
- 欧洲生物信息研究所2021亮点报告发布:采用AlphaFold已预测出近1百万个蛋白质
- UDP编程
- 使用云服务器搭建代理
- 存币生息理财dapp系统开发案例演示
- Inno setup packaging and signing Guide
猜你喜欢

动作捕捉用于蛇运动分析及蛇形机器人开发

DR-Net: dual-rotation network with feature map enhancement for medical image segmentation

Self made j-flash burning tool -- QT calls jlinkarm DLL mode

Mysql 身份认证绕过漏洞(CVE-2012-2122)

ICLR 2022 | pre training language model based on anti self attention mechanism

MySQL数据库基本操作-DML

On the problems of born charge and non analytical correction in phonon and heat transport calculations

Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)

Aardio - does not declare the method of directly passing float values

C three ways to realize socket data reception
随机推荐
2022-07-05 stonedb sub query processing parsing time analysis
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
第十九章 使用工作队列管理器(二)
Plafond du tutoriel MySQL, bien collecté, regardez lentement
Web APIs DOM time object
机试刷题1
做国外LEAD2022年下半年几点建议
Improving Multimodal Accuracy Through Modality Pre-training and Attention
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
SQL server generates auto increment sequence number
Aardio - 通过变量名将变量值整合到一串文本中
Rust knowledge mind map XMIND
NPM cannot install sharp
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
MySQL教程的天花板,收藏好,慢慢看
How to achieve text animation effect
Signed and unsigned keywords
Project duplicate template
服务器的系统怎么选者
自定义 swap 函数