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.
1 个回答
国民小哥哥
国民小哥哥
这种是因为redis的内存淘汰测量不是LFU,所以需要设置下LFU,设置示例如下:
CONFIG set maxmemory-policy allkeys-lfu

发布于:9个月前 (09-09) IP属地:四川省
我来回答