Documentation ¶
Overview ¶
Package rediskit helps to interact with redis storage backend
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromConfig ¶
NewFromConfig returns redis *redis.Client instance from yaml config file
given config file contents: redis: primary: username: <username> password: "<password>" host: mredis.aws.com port: 6379 schema: 0 conn: max-idle: 20 max-lifetime: 10m timeout: 5m max-open: 100 then we can call using : v := viper.New() ... set v file configs, etc db, err := log.NewFromConfig(v, "redis.primary") ...continue using db.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.