mirror of https://github.com/go-redis/redis.git
Add Watch func to UniversalClient interface
This commit is contained in:
parent
9ccc23344a
commit
ea254bbfda
|
@ -117,6 +117,7 @@ func (o *UniversalOptions) simple() *Options {
|
||||||
// applications locally.
|
// applications locally.
|
||||||
type UniversalClient interface {
|
type UniversalClient interface {
|
||||||
Cmdable
|
Cmdable
|
||||||
|
Watch(fn func(*Tx) error, keys ...string) error
|
||||||
Process(cmd Cmder) error
|
Process(cmd Cmder) error
|
||||||
WrapProcess(fn func(oldProcess func(cmd Cmder) error) func(cmd Cmder) error)
|
WrapProcess(fn func(oldProcess func(cmd Cmder) error) func(cmd Cmder) error)
|
||||||
Subscribe(channels ...string) *PubSub
|
Subscribe(channels ...string) *PubSub
|
||||||
|
|
Loading…
Reference in New Issue