package
Version:
v0.0.0-...-2c6e621
Opens a new window with list of versions in this module.
Published: Dec 15, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewRedis(redisConf *Config) (*redis.Client, error)
NewRedis initialize redis instance
type Config struct {
Host string
Password string
DB int
PoolSize int `mapstructure:"pool_size"`
MinIdleConns int `mapstructure:"min_idle_conns"`
}
Config for go-redis
Source Files
¶
Click to show internal directories.
Click to hide internal directories.