1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 10:50:55 +00:00

bug: restore the default value

This commit is contained in:
Pieter Callewaert 2017-12-26 11:43:04 +01:00
parent 7fd80e6aa1
commit 59fd3952b7

View File

@ -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"]