Skip to content

Commit 7a91ed0

Browse files
committed
Add AddHook to UniversalClient
1 parent 43fdab3 commit 7a91ed0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

universal.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func (o *UniversalOptions) simple() *Options {
154154
type UniversalClient interface {
155155
Cmdable
156156
Context() context.Context
157+
AddHook(Hook)
157158
Watch(fn func(*Tx) error, keys ...string) error
158159
Process(cmd Cmder) error
159160
Subscribe(channels ...string) *PubSub
@@ -163,6 +164,7 @@ type UniversalClient interface {
163164

164165
var _ UniversalClient = (*Client)(nil)
165166
var _ UniversalClient = (*ClusterClient)(nil)
167+
var _ UniversalClient = (*Ring)(nil)
166168

167169
// NewUniversalClient returns a new multi client. The type of client returned depends
168170
// on the following three conditions:

0 commit comments

Comments
 (0)