fix Error
This commit is contained in:
parent
2084fdaecb
commit
929fab208a
@ -30,7 +30,7 @@ func (c *cache) Set(ctx *redis.Context, key string, value interface{}) error {
|
||||
rc *redis.RealClient
|
||||
)
|
||||
|
||||
if rc, err = redis.Client.GetRedisClient(ctx.Flag); nil != err {
|
||||
if rc, err = redis.Client.GetRedisClientWithError(ctx.Flag); nil != err {
|
||||
return err
|
||||
}
|
||||
return rc.Master.Set(nil, key, value, -1).Err()
|
||||
|
Loading…
Reference in New Issue
Block a user