Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 redis 设置 LFU 驱逐策略。如何借助 jcache API 或 redisson API 配置 LFU 和 LRU 等驱逐策略?
您无法通过 API 配置驱逐策略;唯一的方法是maxmemory-policy在 redis conf 文件中编辑指令
maxmemory-policy