Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisClientManager ¶
func InstallRedisClientManager ¶
func InstallRedisClientManager(configs []RedisConfig)
Types ¶
type RedisConfig ¶
type RedisConfig struct { Name string // redis name Addr string Active int // pool Idle int // pool DialTimeout base.Duration ReadTimeout base.Duration WriteTimeout base.Duration IdleTimeout base.Duration DBNum string // db号 Password string // 密码 }
Redis client config.
func (*RedisConfig) ToRedisCacheConfig ¶
func (c *RedisConfig) ToRedisCacheConfig() string
type RedisPool ¶
func GetRedisClient ¶
func NewRedisPool ¶
func NewRedisPool(c *RedisConfig) (pool *RedisPool)
Click to show internal directories.
Click to hide internal directories.