1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 12:31:58 +00:00

add cluster driver

Former-commit-id: 1ca87c78690a3c7a5bb40d8d669de4371bd3932c
This commit is contained in:
will
2020-06-27 17:33:02 +08:00
parent 7f9e664b90
commit b8218df789
5 changed files with 302 additions and 24 deletions

View File

@@ -19,6 +19,7 @@ type Driver interface {
var (
_ Driver = (*RedigoDriver)(nil)
_ Driver = (*RadixDriver)(nil)
_ Driver = (*RadixClusterDriver)(nil)
)
// Redigo returns the driver for the redigo go redis client.
@@ -32,3 +33,8 @@ func Redigo() *RedigoDriver {
func Radix() *RadixDriver {
return &RadixDriver{}
}
// RadixCluster returns the driver for the radix go redis client(only support redis cluster).
func RadixCluster() *RadixClusterDriver {
return &RadixClusterDriver{}
}