gpt4 book ai didi

caching - 将 Azure Redis 缓存设置为 LRU

转载 作者:IT王子 更新时间:2023-10-29 06:15:04 26 4
gpt4 key购买 nike

使用Azure redis cache的预览,而且效果很好。但我不知道如何将其配置为 LRU 缓存,如 redis 文档所述。异常(exception)是

StackExchange.Redis.RedisServerException: ERR unknown command 'CONFIG'

我的代码是

server.ConfigSet("maxmemory", "250m");
server.ConfigSet("maxmemory-policy", "allkeys-lru");

最佳答案

当前已禁用初始 Azure Redis 缓存(预览版)的配置。我们将在刷新预览时有选择地开放此功能。

默认情况下,maxmemory-policy 设置为 volatile-lru。

更新 - 现在可以通过缓存 Blade 配置最大内存策略。

关于caching - 将 Azure Redis 缓存设置为 LRU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23856807/

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