1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 17:40:56 +00:00
This commit is contained in:
AllenX2018 2020-11-13 16:47:22 +08:00
parent c5c03815f3
commit 663e5d728c

View File

@ -28,14 +28,14 @@ func NewSsdbCache() cache.Cache {
func (rc *Cache) Get(ctx context.Context, key string) (interface{}, error) {
if rc.conn == nil {
if err := rc.connectInit(); err != nil {
return nil, nil
return nil, err
}
}
value, err := rc.conn.Get(key)
if err == nil {
return value, nil
}
return nil, nil
return nil, err
}
// GetMulti gets one or keys values from ssdb.