mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 15:20:55 +00:00
fix issue #4312
This commit is contained in:
parent
c5c03815f3
commit
663e5d728c
4
client/cache/ssdb/ssdb.go
vendored
4
client/cache/ssdb/ssdb.go
vendored
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user