Versions in this module Expand all Collapse all v0 v0.1.1 Dec 20, 2021 Changes in this version type Options + DialTimeoutSec int64 + ReadTimeoutSec int64 + WriteTimeoutSec int64 v0.1.0 Sep 8, 2021 Changes in this version + type Client struct + func NewRedisClient(cfg Config) (*Client, error) + func (c *Client) Del(key string) error + func (c *Client) DelContext(ctx context.Context, key string) error + func (c *Client) Get(key string) (interface{}, error) + func (c *Client) GetContext(ctx context.Context, key string) (interface{}, error) + func (c *Client) Set(key string, value interface{}) error + func (c *Client) SetContext(ctx context.Context, key string, value interface{}, expiration time.Duration) error + func (c *Client) SetWithTTL(key string, value interface{}, expiration time.Duration) error + type ClusterClient struct + func NewRedisClusterClient(config ClusterConfig) (*ClusterClient, error) + type ClusterConfig struct + Addrs []string + type Config struct + Addr string + DB int + type Options struct + DialTimeout time.Duration + MaxRetries int + Password string + ReadTimeout time.Duration + Username string + WriteTimeout time.Duration Other modules containing this package github.com/bbdshow/bkit