Documentation ¶ Index ¶ func IsNilErr(err error) bool func NewFromConfig(cfg Config) (*redis.Client, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsNilErr ¶ func IsNilErr(err error) bool IsNilErr returns whether err is nil error func NewFromConfig ¶ func NewFromConfig(cfg Config) (*redis.Client, error) NewFromConfig returns new redis client from config Types ¶ type Config ¶ type Config struct { Address string Password string Database string MasterName string // for datacollection, notify if the snapshot redis is in use Enable string MaxOpenConns int } Config define redis config Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.