mirror of
https://github.com/redis/go-redis.git
synced 2025-04-16 09:23:06 +03:00
Add AddHook to UniversalClient
This commit is contained in:
parent
43fdab312a
commit
7a91ed0df5
@ -154,6 +154,7 @@ func (o *UniversalOptions) simple() *Options {
|
||||
type UniversalClient interface {
|
||||
Cmdable
|
||||
Context() context.Context
|
||||
AddHook(Hook)
|
||||
Watch(fn func(*Tx) error, keys ...string) error
|
||||
Process(cmd Cmder) error
|
||||
Subscribe(channels ...string) *PubSub
|
||||
@ -163,6 +164,7 @@ type UniversalClient interface {
|
||||
|
||||
var _ UniversalClient = (*Client)(nil)
|
||||
var _ UniversalClient = (*ClusterClient)(nil)
|
||||
var _ UniversalClient = (*Ring)(nil)
|
||||
|
||||
// NewUniversalClient returns a new multi client. The type of client returned depends
|
||||
// on the following three conditions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user