Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ClusterType means redis cluster. ClusterType = "cluster" // NodeType means redis node. NodeType = "node" // Nil is an alias of redis.Nil. Nil = stdRedis.Nil )
Variables ¶
View Source
var (
ErrEmptyHost = errors.New("empty redis host")
)
Functions ¶
This section is empty.
Types ¶
type RedisConf ¶
type RedisConf struct {
Host string
Type string `json:",default=node,options=node|cluster"`
Pass string `json:"optional"`
}
A RedisConf is a redis config.
type RedisKeyConf ¶
A RedisKeyConf is a redis config with key.
Click to show internal directories.
Click to hide internal directories.