1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Added WrapProcessPipeline to UniversalClient, wrap c.processTxPipeline in cluster client

This commit is contained in:
Andrea Spacca
2019-04-14 10:56:15 +02:00
parent cb1c190bed
commit 9d63d8db54
2 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,7 @@ type UniversalClient interface {
Watch(fn func(*Tx) error, keys ...string) error
Process(cmd Cmder) error
WrapProcess(fn func(oldProcess func(cmd Cmder) error) func(cmd Cmder) error)
WrapProcessPipeline(fn func(oldProcess func([]Cmder) error) func([]Cmder) error)
Subscribe(channels ...string) *PubSub
PSubscribe(channels ...string) *PubSub
Close() error