Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisConfig ¶
type RedisConfig struct { UseCluster bool `json:"use_cluster" env:"REDIS_USE_CLUSTER"` Addrs []string `json:"addrs" env:"REDIS_ADDRS"` // For cluster Addr string `json:"addr" env:"REDIS_ADDR"` // For single-node Password string `json:"password" env:"REDIS_PASSWORD"` DB int `json:"db" env:"REDIS_DB"` PoolSize int `json:"pool_size" env:"REDIS_POOL_SIZE"` }
func DefaultConfig ¶
func DefaultConfig() RedisConfig
Click to show internal directories.
Click to hide internal directories.