Add Watch func to UniversalClient interface

This commit is contained in:
Ilya Sinelnikov 2018-05-07 20:28:11 +03:00
parent 9ccc23344a
commit ea254bbfda
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ func (o *UniversalOptions) simple() *Options {
// applications locally.
type UniversalClient interface {
Cmdable
Watch(fn func(*Tx) error, keys ...string) error
Process(cmd Cmder) error
WrapProcess(fn func(oldProcess func(cmd Cmder) error) func(cmd Cmder) error)
Subscribe(channels ...string) *PubSub