Documentation ¶
Index ¶
- Variables
- type Client
- func (client *Client) Close() error
- func (client *Client) Delete(ctx context.Context, key kvstore.Key) (err error)
- func (client *Client) Eval(ctx context.Context, script string, keys []string) (err error)
- func (client *Client) FlushDB(ctx context.Context) error
- func (client *Client) Get(ctx context.Context, key kvstore.Key) (_ kvstore.Value, err error)
- func (client *Client) IncrBy(ctx context.Context, key kvstore.Key, value int64) (err error)
- func (client *Client) Put(ctx context.Context, key kvstore.Key, value kvstore.Value) (err error)
- func (client *Client) Range(ctx context.Context, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is a redis error. Error = errs.Class("redis") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the entrypoint into Redis.
func OpenClient ¶
OpenClient returns a configured Client instance, verifying a successful connection to redis.
func OpenClientFrom ¶
OpenClientFrom returns a configured Client instance from a redis address, verifying a successful connection to redis.
func (*Client) Eval ¶
Eval evaluates a Lua 5.1 script on Redis Server. This arguments can be accessed by Lua using the KEYS global variable in the form of a one-based array (so KEYS[1], KEYS[2], ...).
func (*Client) Get ¶
Get looks up the provided key from redis returning either an error or the result.
Click to show internal directories.
Click to hide internal directories.