Documentation ¶
Index ¶
- func JsonArrAppend(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.IntCmd
- func JsonArrIndex(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.IntCmd
- func JsonArrInsert(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.IntCmd
- func JsonArrLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
- func JsonArrPop(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.StringCmd
- func JsonArrTrim(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.IntCmd
- func JsonDel(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.IntCmd
- func JsonGet(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.StringCmd
- func JsonMGet(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.StringSliceCmd
- func JsonNumIncrBy(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.StringCmd
- func JsonNumMultBy(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.StringCmd
- func JsonObjKeys(processor RedisProcessor, ctx context.Context, key string, path string) *redis.StringSliceCmd
- func JsonObjLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
- func JsonSet(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.StatusCmd
- func JsonStrAppend(processor RedisProcessor, ctx context.Context, key string, path string, ...) *redis.IntCmd
- func JsonStrLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
- func JsonType(processor RedisProcessor, ctx context.Context, key string, path string) *redis.StringCmd
- type Client
- func (processor *Client) JsonArrAppend(ctx context.Context, key string, path string, args ...interface{}) *redis.IntCmd
- func (processor *Client) JsonArrIndex(ctx context.Context, key string, path string, value interface{}, ...) *redis.IntCmd
- func (processor *Client) JsonArrInsert(ctx context.Context, key string, path string, index int, values ...interface{}) *redis.IntCmd
- func (processor *Client) JsonArrLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Client) JsonArrPop(ctx context.Context, key string, path string, index int) *redis.StringCmd
- func (processor *Client) JsonArrTrim(ctx context.Context, key string, path string, start int, stop int) *redis.IntCmd
- func (processor *Client) JsonDel(ctx context.Context, key string, args ...interface{}) *redis.IntCmd
- func (processor *Client) JsonGet(ctx context.Context, key string, args ...interface{}) *redis.StringCmd
- func (processor *Client) JsonMGet(ctx context.Context, key string, args ...interface{}) *redis.StringSliceCmd
- func (processor *Client) JsonNumIncrBy(ctx context.Context, key string, path string, value int) *redis.StringCmd
- func (processor *Client) JsonNumMultBy(ctx context.Context, key string, path string, value int) *redis.StringCmd
- func (processor *Client) JsonObjKeys(ctx context.Context, key string, path string) *redis.StringSliceCmd
- func (processor *Client) JsonObjLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Client) JsonSet(ctx context.Context, key string, path string, json string, args ...interface{}) *redis.StatusCmd
- func (processor *Client) JsonStrAppend(ctx context.Context, key string, path string, value string) *redis.IntCmd
- func (processor *Client) JsonStrLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Client) JsonType(ctx context.Context, key string, path string) *redis.StringCmd
- func (cl *Client) Pipeline() *Pipeline
- func (cl *Client) TXPipeline() *Pipeline
- type Pipeline
- func (processor *Pipeline) JsonArrAppend(ctx context.Context, key string, path string, args ...interface{}) *redis.IntCmd
- func (processor *Pipeline) JsonArrIndex(ctx context.Context, key string, path string, value interface{}, ...) *redis.IntCmd
- func (processor *Pipeline) JsonArrInsert(ctx context.Context, key string, path string, index int, values ...interface{}) *redis.IntCmd
- func (processor *Pipeline) JsonArrLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Pipeline) JsonArrPop(ctx context.Context, key string, path string, index int) *redis.StringCmd
- func (processor *Pipeline) JsonArrTrim(ctx context.Context, key string, path string, start int, stop int) *redis.IntCmd
- func (processor *Pipeline) JsonDel(ctx context.Context, key string, args ...interface{}) *redis.IntCmd
- func (processor *Pipeline) JsonGet(ctx context.Context, key string, args ...interface{}) *redis.StringCmd
- func (processor *Pipeline) JsonMGet(ctx context.Context, key string, args ...interface{}) *redis.StringSliceCmd
- func (processor *Pipeline) JsonNumIncrBy(ctx context.Context, key string, path string, value int) *redis.StringCmd
- func (processor *Pipeline) JsonNumMultBy(ctx context.Context, key string, path string, value int) *redis.StringCmd
- func (processor *Pipeline) JsonObjKeys(ctx context.Context, key string, path string) *redis.StringSliceCmd
- func (processor *Pipeline) JsonObjLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Pipeline) JsonSet(ctx context.Context, key string, path string, json string, args ...interface{}) *redis.StatusCmd
- func (processor *Pipeline) JsonStrAppend(ctx context.Context, key string, path string, value string) *redis.IntCmd
- func (processor *Pipeline) JsonStrLen(ctx context.Context, key string, path string) *redis.IntCmd
- func (processor *Pipeline) JsonType(ctx context.Context, key string, path string) *redis.StringCmd
- func (pl *Pipeline) Pipeline() *Pipeline
- type RedisProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonArrAppend ¶
func JsonArrAppend(processor RedisProcessor, ctx context.Context, key string, path string, args ...interface{}) *redis.IntCmd
---- JsonArrAppend ----
func JsonArrIndex ¶
func JsonArrIndex(processor RedisProcessor, ctx context.Context, key string, path string, value interface{}, startAndStop ...interface{}) *redis.IntCmd
---- JsonArrIndex ----
func JsonArrInsert ¶
func JsonArrInsert(processor RedisProcessor, ctx context.Context, key string, path string, index int, values ...interface{}) *redis.IntCmd
---- JsonArrInsert ----
func JsonArrLen ¶
func JsonArrLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
---- JsonArrLen ----
func JsonArrPop ¶
func JsonArrPop(processor RedisProcessor, ctx context.Context, key string, path string, index int) *redis.StringCmd
---- JsonArrPop ----
func JsonArrTrim ¶
func JsonArrTrim(processor RedisProcessor, ctx context.Context, key string, path string, start int, stop int) *redis.IntCmd
---- JsonArrTrim ----
func JsonDel ¶
func JsonDel(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.IntCmd
---- JsonDel ----
func JsonGet ¶
func JsonGet(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.StringCmd
---- JsonGet ----
func JsonMGet ¶
func JsonMGet(processor RedisProcessor, ctx context.Context, key string, args ...interface{}) *redis.StringSliceCmd
---- JsonMGet ----
func JsonNumIncrBy ¶
func JsonNumIncrBy(processor RedisProcessor, ctx context.Context, key string, path string, value int) *redis.StringCmd
---- JsonNumIncrBy ----
func JsonNumMultBy ¶
func JsonNumMultBy(processor RedisProcessor, ctx context.Context, key string, path string, value int) *redis.StringCmd
---- JsonNumMultBy ----
func JsonObjKeys ¶
func JsonObjKeys(processor RedisProcessor, ctx context.Context, key string, path string) *redis.StringSliceCmd
---- JsonObjKeys ----
func JsonObjLen ¶
func JsonObjLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
---- JsonObjLen ----
func JsonSet ¶
func JsonSet(processor RedisProcessor, ctx context.Context, key string, path string, json string, args ...interface{}) *redis.StatusCmd
---- JsonSet ----
func JsonStrAppend ¶
func JsonStrAppend(processor RedisProcessor, ctx context.Context, key string, path string, value string) *redis.IntCmd
---- JsonStrAppend ----
func JsonStrLen ¶
func JsonStrLen(processor RedisProcessor, ctx context.Context, key string, path string) *redis.IntCmd
---- JsonStrLen ----
Types ¶
type Client ¶
type Client struct {
*redis.Client
}
Client is an extended redis.Client, stores a pointer to the original redis.Client
func ExtendClient ¶
func ExtendClient(client *redis.Client) *Client
func (*Client) JsonArrAppend ¶
func (*Client) JsonArrIndex ¶
func (*Client) JsonArrInsert ¶
func (*Client) JsonArrLen ¶
func (*Client) JsonArrPop ¶
func (*Client) JsonArrTrim ¶
func (*Client) JsonNumIncrBy ¶
func (*Client) JsonNumMultBy ¶
func (*Client) JsonObjKeys ¶
func (*Client) JsonObjLen ¶
func (*Client) JsonStrAppend ¶
func (*Client) JsonStrLen ¶
func (*Client) TXPipeline ¶
type Pipeline ¶
type Pipeline struct {
redis.Pipeliner
}
Pipeline is an extended redis.Pipeline, stores a pointer to the original redis.Pipeliner
func ExtendPipeline ¶
func ExtendPipeline(pipeline redis.Pipeliner) *Pipeline
func (*Pipeline) JsonArrAppend ¶
func (*Pipeline) JsonArrIndex ¶
func (*Pipeline) JsonArrInsert ¶
func (*Pipeline) JsonArrLen ¶
func (*Pipeline) JsonArrPop ¶
func (*Pipeline) JsonArrTrim ¶
func (*Pipeline) JsonNumIncrBy ¶
func (*Pipeline) JsonNumMultBy ¶
func (*Pipeline) JsonObjKeys ¶
func (*Pipeline) JsonObjLen ¶
func (*Pipeline) JsonStrAppend ¶
func (*Pipeline) JsonStrLen ¶
type RedisProcessor ¶
RedisProcessor is redis client or pipeline instance that will process a command
Click to show internal directories.
Click to hide internal directories.