Persistence should have nothing to do with whether the memory is full. When the memory usage reaches the maxmemory value, Redis will use the maxmemory-policy configuration rule to recycle memory: http://www.redis.cn/topics/lru-cache.html For more information about persistence, please refer to: http: //www.redis.cn/topics/persistence.html.
No, there are two ways to persist: one is to copy the current library and the other is to record commands. The former is used by default, and the latter is used in actual use
Persistence should have nothing to do with whether the memory is full. When the memory usage reaches the maxmemory value, Redis will use the maxmemory-policy configuration rule to recycle memory: http://www.redis.cn/topics/lru-cache.html
For more information about persistence, please refer to: http: //www.redis.cn/topics/persistence.html.
No, there are two ways to persist: one is to copy the current library and the other is to record commands. The former is used by default, and the latter is used in actual use
Two ways.
1. RDB persistence file (binary compressed file) (enabled by default), RDB will block the redis thread when executing persistence.
2. AOF persistent write command (after being enabled, it takes priority over RDB).