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:
@@ -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{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user