diff --git a/cache/redis/redis.go b/cache/redis/redis.go index 603ade7e..c5eb8744 100644 --- a/cache/redis/redis.go +++ b/cache/redis/redis.go @@ -171,7 +171,7 @@ func (rc *Cache) StartAndGC(config string) error { cf["password"] = "" } if _, ok := cf["maxIdle"]; !ok { - cf["maxIdle"] = "" + cf["maxIdle"] = "3" } rc.key = cf["key"] rc.conninfo = cf["conn"]