Versions in this module Expand all Collapse all v0 v0.0.2 May 18, 2022 Changes in this version type Config + Addrs []string + MasterName string + SentinelPassword string + UserName string type RedisCli + func (r *RedisCli) Get(ctx context.Context, key string) (res string, err error) v0.0.1 Mar 10, 2022 Changes in this version + type Config struct + DB int + Host string + Password string + Port int + type RedisCli struct + func New(c *Config) *RedisCli + func NewByS(addr, password string) *RedisCli + func (r *RedisCli) HSetFromStruct(ctx context.Context, key string, data interface{}) *redis.IntCmd + func (r *RedisCli) HSetFromStructByPip(ctx context.Context, pip *redis.Pipeliner, key string, data interface{}) *redis.IntCmd