How to understand the save parameter in redis
PHP中文网
PHP中文网 2017-05-16 13:19:39
0
1
708

Specify how many update operations there are within a long period of time, and then synchronize the data to the data file. Multiple conditions can be used

save <seconds> <changes>

Redis默认配置文件中提供了三个条件:

save 900 1

save 300 10

save 60 10000

分别表示900秒(15分钟)内有1个更改,300秒(5分钟)内有10个更改以及60秒内有10000个更改。

怎么理解 ?
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
PHPzhong

If any condition is triggered, the data in the memory will be synchronized to the disk.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template