mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:30:56 +00:00
bug: restore the default value
This commit is contained in:
parent
7fd80e6aa1
commit
59fd3952b7
2
cache/redis/redis.go
vendored
2
cache/redis/redis.go
vendored
@ -171,7 +171,7 @@ func (rc *Cache) StartAndGC(config string) error {
|
|||||||
cf["password"] = ""
|
cf["password"] = ""
|
||||||
}
|
}
|
||||||
if _, ok := cf["maxIdle"]; !ok {
|
if _, ok := cf["maxIdle"]; !ok {
|
||||||
cf["maxIdle"] = ""
|
cf["maxIdle"] = "3"
|
||||||
}
|
}
|
||||||
rc.key = cf["key"]
|
rc.key = cf["key"]
|
||||||
rc.conninfo = cf["conn"]
|
rc.conninfo = cf["conn"]
|
||||||
|
Loading…
Reference in New Issue
Block a user