1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| # Unless specified otherwise, by default Redis will save the DB: # * After 3600 seconds (an hour) if at least 1 change was performed # * After 300 seconds (5 minutes) if at least 100 changes were performed # * After 60 seconds if at least 10000 changes were performed # # You can set these explicitly by uncommenting the following line. # # save 3600 1 300 100 60 10000
# 3600s内如果至少有一个key进行了修改则进行持久化操作 # 300s内如果至少有100个key进行了修改则进行持久化操作 # 60s内如果至少有10000个key进行了修改则进行持久化操作
stop-writes-on-bgsave-error yes # 持久化出错是否继续进行 rdbcompression yes # 是否压缩rdb文件 rdbchecksum yes # 是否检验检查 dir ./ # 保存文件位置
|