Versions in this module Expand all Collapse all v1 v1.4.0 Oct 14, 2022 Changes in this version type Client + func (c *Client) HIncrByFloat(key, field string, inc float64) float64 v1.1.15 Jun 6, 2022 Changes in this version type Client + func (c *Client) Keys(pattern string) *redis.StringSliceCmd + func (c *Client) Set(key, field string, expiration time.Duration) v1.1.14 Jun 6, 2022 Changes in this version + type Client struct + func NewClient(opts *ClientOptions) *Client + func (c *Client) Close() + func (c *Client) Del(key string) + func (c *Client) DelMulti(keys []string) + func (c *Client) GetConn() *redis.Client + func (c *Client) HGet(key, field string) (string, bool) + func (c *Client) HGetAll(key string) map[string]string + func (c *Client) HIncrBy(key, field string, inc int64) int64 + type ClientOptions struct + DB int + Host string + MaxRetries int + MaxRetryBackOff time.Duration + MinRetryBackOff time.Duration + Password string + PoolSize int + Port string + WriteTimeout time.Duration + type Clientv2 struct + func NewV2Client(opts *ClientOptions) *Clientv2 + func (c *Clientv2) Close() + func (c *Clientv2) HIncrBy(key, field string, inc int64) + func (c *Clientv2) HIncrByFloat(key, field string, inc float64) + func (c *Clientv2) SAdd(key, field string) int + func (c *Clientv2) SCard(key string) int + func (c *Clientv2) SIsMember(key, val string) int