1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 17:30:50 +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"] = ""
}
if _, ok := cf["maxIdle"]; !ok {
cf["maxIdle"] = ""
cf["maxIdle"] = "3"
}
rc.key = cf["key"]
rc.conninfo = cf["conn"]