Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisComponent ¶
type RedisComponent struct {
Addr string `toml:"addr" json:"addr"`
Username string `toml:"username" json:"username"`
Password string `toml:"password" json:"password"`
DB []int `toml:"db" json:"db"`
PoolSize int `toml:"pool_size" json:"pool_size"`
PoolTimeout int `toml:"pool_timeout" json:"pool_timeout"`
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(conf config.ConfigMate) *RedisComponent
func (*RedisComponent) Name ¶
func (rds *RedisComponent) Name() string
Click to show internal directories.
Click to hide internal directories.