Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActiveServer = RedisState(0) DownServer = RedisState(1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
*redis.Client
State RedisState `json:"state"`
Options *redis.Options
}
func (*Redis) MarshalJSON ¶
type RedisManager ¶
type RedisManager struct {
// contains filtered or unexported fields
}
func NewRedisManager ¶
func NewRedisManager(conf *config.Config) *RedisManager
func (*RedisManager) Close ¶ added in v0.2.0
func (rm *RedisManager) Close() error
Close 关闭所有Redis连接
type RedisState ¶
type RedisState int
Click to show internal directories.
Click to hide internal directories.