Documentation ¶
Index ¶
- type Client
- func (cl Client) JSONDel(ctx context.Context, key, path string) *redis.IntCmd
- func (cl Client) JSONGet(ctx context.Context, key string, args ...interface{}) *redis.StringCmd
- func (cl Client) JSONNUMINCRBy(ctx context.Context, key, path string, num int) *redis.StringCmd
- func (cl Client) JSONSet(ctx context.Context, key, path, jsonData string, args ...interface{}) *redis.StatusCmd
- func (cl *Client) JSONSetWithExpire(ctx context.Context, key, path string, object interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *redis.Client // contains filtered or unexported fields }
Client is an extended redis.Client, stores a pointer to the original redis.Client
func ExtendClient ¶
func ExtendClient(client *redis.Client) *Client
func (Client) JSONDel ¶
JsonDel returns intCmd -> deleted 1 or 0 read more: https://oss.redislabs.com/rejson/commands/#jsondel
func (Client) JSONGet ¶
JSONGet
Possible args:
(Optional) INDENT + indent-string (Optional) NEWLINE + line-break-string (Optional) SPACE + space-string (Optional) NOESCAPE (Optional) path ...string
returns stringCmd -> the JSON string read more: https://oss.redislabs.com/rejson/commands/#jsonget
func (Client) JSONNUMINCRBy ¶
Click to show internal directories.
Click to hide internal directories.