Documentation
¶
Index ¶
- Variables
- type Client
- func (r Client) Del(ctx context.Context, key string) (int64, error)
- func (r Client) Get(ctx context.Context, key string) (string, error)
- func (r Client) Keys(ctx context.Context, match string) ([]string, error)
- func (r Client) Lock(ctx context.Context, key string, ttl time.Duration) (bool, error)
- func (r Client) Set(ctx context.Context, key string, value string, ttl time.Duration) (string, error)
- func (r Client) SetNX(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (r Client) Unlock(ctx context.Context, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KeepTTL = redis.KeepTTL
KeepTTL - helper to expose KeepTTL
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client - instance created when initializing client
func (Client) Set ¶
func (r Client) Set(ctx context.Context, key string, value string, ttl time.Duration) (string, error)
Set - implementation of redis SET
Click to show internal directories.
Click to hide internal directories.