mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 02:40:17 +00:00
5
cache/cache.go
vendored
5
cache/cache.go
vendored
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user