search

Home  >  Q&A  >  body text

How to understand the save parameter in redis

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中文网2756 days ago688

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-16 13:21:39

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

    reply
    0
  • Cancelreply