From 7a91ed0df55ea1150b8fb1913594f89e95052921 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 31 May 2019 17:40:47 +0300 Subject: [PATCH] Add AddHook to UniversalClient --- universal.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/universal.go b/universal.go index 76bc1b2..fd240d0 100644 --- a/universal.go +++ b/universal.go @@ -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: