diff options
Diffstat (limited to 'plugins/redis/interface.go')
-rw-r--r-- | plugins/redis/interface.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/redis/interface.go b/plugins/redis/interface.go index c0be6137..189b0002 100644 --- a/plugins/redis/interface.go +++ b/plugins/redis/interface.go @@ -4,6 +4,9 @@ import "github.com/go-redis/redis/v8" // Redis in the redis KV plugin interface type Redis interface { - // GetClient provides universal redis client - GetClient() redis.UniversalClient + // RedisClient provides universal redis client + RedisClient(key string) (redis.UniversalClient, error) + + // DefaultClient provide default redis client based on redis defaults + DefaultClient() redis.UniversalClient } |