Documentation ¶
Index ¶
- type Client
- 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
- type ClusterConfig
- type Config
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*redis.Client
}
func NewRedisClient ¶
NewRedisClient simplify GET SET DEL operation
func (*Client) GetContext ¶
func (*Client) SetContext ¶
type ClusterClient ¶
type ClusterClient struct {
*redis.ClusterClient
}
func NewRedisClusterClient ¶
func NewRedisClusterClient(cfg ClusterConfig) (*ClusterClient, error)
type ClusterConfig ¶
Click to show internal directories.
Click to hide internal directories.