summaryrefslogtreecommitdiff
path: root/interfaces/redis/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-17 18:23:19 +0300
committerValery Piashchynski <[email protected]>2020-12-17 18:23:19 +0300
commitfbd5adde5abae6f7adb7fcdafc226bcd3480d498 (patch)
tree59ce0499568e0d4fd889d43de9a5eb1b17907a8e /interfaces/redis/interface.go
parent7884349f27ed750825a0f4dea59af8964e182651 (diff)
Move config interface to the interfaces folder. Initial redis plugin
structure
Diffstat (limited to 'interfaces/redis/interface.go')
-rw-r--r--interfaces/redis/interface.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/interfaces/redis/interface.go b/interfaces/redis/interface.go
new file mode 100644
index 00000000..61dd6c08
--- /dev/null
+++ b/interfaces/redis/interface.go
@@ -0,0 +1,10 @@
+package redis
+
+import "github.com/go-redis/redis/v8"
+
+type Redis interface {
+ GetClient() *redis.Client
+ GetUniversalClient() *redis.UniversalClient
+ GetClusterClient() *redis.ClusterClient
+ GetSentinelClient() *redis.SentinelClient
+}