为什么redis的默认配置文件中有三个选项?

时间:2015-06-17 04:59:01

标签: redis

redis.conf中保存配置有三个选项,如下所示,我想知道在运行redis服务器的地方选择哪一个。

save 900 1
save 300 10
save 60 10000

1 个答案:

答案 0 :(得分:3)

Redis服务器运行后,所有这些将一起使用。以下是redis.conf文件中这些指令上方的行:

#   In the example below the behaviour will be to save:
#   after 900 sec (15 min) if at least 1 key changed
#   after 300 sec (5 min) if at least 10 keys changed
#   after 60 sec if at least 10000 keys changed