Documentation
¶
Index ¶
- func Del(ctx context.Context, keys ...string) (int64, error)
- func Expire(ctx context.Context, key string, exp time.Duration) (bool, error)
- func Get(ctx context.Context, key string) (string, error)
- func Incr(ctx context.Context, key string) (int64, error)
- func Keys(ctx context.Context, pattern string) ([]string, error)
- func MGet(ctx context.Context, keys ...string) ([]interface{}, error)
- func MSetEx(ctx context.Context, keyValues []KeyValue, exp time.Duration) error
- func Middleware(c *Client) func(h http.Handler) http.Handler
- func NewContext(ctx context.Context, c *Client) context.Context
- func Scan(ctx context.Context, cursor uint64, match string, count int64) ([]string, uint64, error)
- func Set(ctx context.Context, key string, value interface{}) (string, error)
- func SetEx(ctx context.Context, key string, value interface{}, exp time.Duration) (string, error)
- func SetKeyPrefix(prefix string)
- type Client
- type KeyValue
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetKeyPrefix ¶
func SetKeyPrefix(prefix string)
Types ¶
Click to show internal directories.
Click to hide internal directories.