在redis.conf
中保存配置有三个选项,如下所示,我想知道在运行redis服务器的地方选择哪一个。
save 900 1
save 300 10
save 60 10000
答案 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