Documentation ¶ Index ¶ func Destroy(client *Client) error type Client func NewClient(address string, userName string, password string, db int) (*Client, error) func (client *Client) Get(key string) (any, error) func (client *Client) GetMulti(keys []string) (map[string]any, error) func (client *Client) Set(key string, value any, expireSec int64) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Destroy ¶ func Destroy(client *Client) error Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(address string, userName string, password string, db int) (*Client, error) func (*Client) Get ¶ func (client *Client) Get(key string) (any, error) func (*Client) GetMulti ¶ func (client *Client) GetMulti(keys []string) (map[string]any, error) func (*Client) Set ¶ func (client *Client) Set(key string, value any, expireSec int64) error Source Files ¶ View all Source files redis_client.go Click to show internal directories. Click to hide internal directories.