redis执行报错,提示:ERR An LFU maxmemory policy is not selected
redis执行的报错了,提示:
Error: ERR An LFU maxmemory policy is not selected, access frequency not tracked. Please note that when switching between policies at runtime LRU and LFU data will take some time to adjust.
发布于:2年前 (2023-09-09) IP属地:四川省
1 个回答
这种是因为redis的内存淘汰测量不是LFU,所以需要设置下LFU,设置示例如下:

CONFIG set maxmemory-policy allkeys-lfu

发布于:2年前 (2023-09-09) IP属地:四川省
我来回答
您需要 登录 后回答此问题!