美文网首页
go-redis options

go-redis options

作者: p_gerer | 来源:发表于2019-06-11 11:35 被阅读0次

github.com/go-redis/redis

options配置


image.png

其中要特别注意MaxConnAge,默认值不关闭,使用默认配置连接数会累计增长,超出maxclient程序会直接宕掉。
查看redis已使用连接数命令:info clients
查看redis最大连接数:CONFIG GET maxclients

相关文章

网友评论

      本文标题:go-redis options

      本文链接:https://www.haomeiwen.com/subject/ceuffctx.html