gpt4 book ai didi

redis - 如何配置 redis 驱逐策略运行时?

转载 作者:可可西里 更新时间:2023-11-01 11:14:07 25 4
gpt4 key购买 nike

在官方网站上,它说:

however you can reconfigure the policy at runtime while the application is running

如果想在运行时使用volatile-lru策略,如何实现?

最佳答案

引用CONFIG SET command - 例如,要将逐出策略设置为“noeviction”,请发送此命令(例如通过 redis-cli):

redis> CONFIG SET maxmemory-policy noeviction

关于redis - 如何配置 redis 驱逐策略运行时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57804012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com