1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 02:40:17 +00:00
thanks for the good suggestion
This commit is contained in:
astaxie
2013-09-30 11:30:22 +08:00
parent 35a136bcee
commit bf836a2126
2 changed files with 47 additions and 12 deletions

5
cache/cache.go vendored
View File

@ -36,6 +36,9 @@ func NewCache(adapterName, config string) (Cache, error) {
if !ok {
return nil, fmt.Errorf("cache: unknown adaptername %q (forgotten import?)", adapterName)
}
adapter.StartAndGC(config)
err := adapter.StartAndGC(config)
if err != nil {
return nil, err
}
return adapter, nil
}