Documentation
¶
Index ¶
- func Close()
- func Del(key string) error
- func Expire(key string, second int)
- func Get(key string) (string, bool, error)
- func HDel(key string, field string) (int64, error)
- func HGetAll(key string) (map[string]string, error)
- func HGetFieldValue(key string, field string) (string, error)
- func HIncrBy(key string, field string, incr int64) (int64, error)
- func HSet(key string, value any, second int) error
- func HSetNX(key string, field string, value any) error
- func IsExists(key string) bool
- func KeyPrefix() string
- func Set(key string, value string, second int) error
- func TTL(key string) (float64, error)
- type Client
- func (c *Client) Close()
- func (c *Client) Del(key string) error
- func (c *Client) Expire(key string, second int)
- func (c *Client) Get(key string) (string, bool, error)
- func (c *Client) HDel(key string, field string) (int64, error)
- func (c *Client) HGetAll(key string) (map[string]string, error)
- func (c *Client) HGetFieldValue(key string, field string) (string, error)
- func (c *Client) HIncrBy(key string, field string, incr int64) (int64, error)
- func (c *Client) HSet(key string, value any, second int) error
- func (c *Client) HSetNX(key string, field string, value any) error
- func (c *Client) IsExists(key string) bool
- func (c *Client) Set(key string, value string, second int) error
- func (c *Client) TTL(key string) (float64, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*redis.Client
}
func (*Client) HGetFieldValue ¶
Click to show internal directories.
Click to hide internal directories.