Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "redis"
)
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 ¶ added in v1.5.5
func NewRedisCache(conf config.ConfigMate) *RedisComponent
func (*RedisComponent) GetCache ¶
func (rds *RedisComponent) GetCache() *redis.Client
func (*RedisComponent) Name ¶
func (rds *RedisComponent) Name() string
Click to show internal directories.
Click to hide internal directories.