1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Add TxPipeline to Cmdable

This commit is contained in:
Vladimir Mihailenco
2017-09-25 11:48:44 +03:00
parent 975882d73d
commit f9307ab2fe
7 changed files with 40 additions and 12 deletions

View File

@ -90,8 +90,8 @@ func (o *UniversalOptions) simple() *Options {
}
return &Options{
Addr: addr,
DB: o.DB,
Addr: addr,
DB: o.DB,
MaxRetries: o.MaxRetries,
Password: o.Password,
@ -117,6 +117,9 @@ type UniversalClient interface {
Close() error
}
var _ UniversalClient = (*Client)(nil)
var _ UniversalClient = (*ClusterClient)(nil)
// NewUniversalClient returns a new multi client. The type of client returned depends
// on the following three conditions:
//