Skip to content

Commit

Permalink
*redis.Client->redis.Cmdable
Browse files Browse the repository at this point in the history
  • Loading branch information
mingye.fan authored and mingye.fan committed Nov 16, 2021
1 parent 7bf8c65 commit 9e0fbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ func NewClient(opt *Options) *Client {
opt.Expiration = -1
}
client := redis.NewClient(&opt.Options)
return &Client{Client: client, options: *opt}
return &Client{Cmdable: client, options: *opt}
}

type Client struct {
*redis.Client
redis.Cmdable
options Options
}

Expand Down

0 comments on commit 9e0fbef

Please sign in to comment.