更新 redis数据库缓存技术.md

This commit is contained in:
wxin 2025-04-06 21:25:37 +08:00
parent 76161175de
commit 3248e4d4ad

View File

@ -260,7 +260,7 @@ AOF 持久化配置
```shell ```shell
appendonly yes/no 是否打开aof日志功能 appendonly yes/no 是否打开aof日志功能
appendfsync always 每1个命令,都立即同步到aof appendfsync always 每1个命令,都立即同步到aof
appendfsync everysec 每秒写1次 appendfsync everysec 指定AOF文件同步到磁盘的策略。可以选择的选项包括"always"每次写操作都同步、“everysec”每秒同步一次和"no"(完全异步)。
appendfsync no 写入工作交给操作系统,由操作系统判断缓冲区大小,统一写入到aof. appendfsync no 写入工作交给操作系统,由操作系统判断缓冲区大小,统一写入到aof.
高级参数: 高级参数:
no-appendfsync-on-rewrite yes/no 正在导出rdb快照的过程中,要不要停止同步 aof no-appendfsync-on-rewrite yes/no 正在导出rdb快照的过程中,要不要停止同步 aof