Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) BLPOP(key string, t time.Duration) ([]string, error)
- func (c *Client) DEL(key ...string) (int64, error)
- func (c *Client) EXISTS(key string) (bool, error)
- func (c *Client) EXPIRE(key string, dur time.Duration) error
- func (c *Client) Eval(script string, keys []string, args ...interface{}) (interface{}, error)
- func (c *Client) EvalSha(sha1 string, keys []string, args ...interface{}) (interface{}, error)
- func (c *Client) GET(key string) (string, error)
- func (c *Client) HDEL(key string, field string) (int64, error)
- func (c *Client) HEXISTS(key string, field string) (bool, error)
- func (c *Client) HGET(key string, field string) (string, error)
- func (c *Client) HGETALL(key string) (map[string]string, error)
- func (c *Client) HINCR(key string, feild string, value int64) (int64, error)
- func (c *Client) HINCRFLOAT(key string, feild string, value float64) (float64, error)
- func (c *Client) HKEYS(key string) ([]string, error)
- func (c *Client) HMGET(name string, keys ...string) ([]interface{}, error)
- func (c *Client) HMSET(name string, kv map[string]interface{}) error
- func (c *Client) HSET(name string, key string, value interface{}) error
- func (c *Client) INCR(key string, value int64) (int64, error)
- func (c *Client) KEYS(key string) ([]string, error)
- func (c *Client) LRANGE(key string, start, stop int64) ([]string, error)
- func (c *Client) Pipeline() (redis.Pipeliner, error)
- func (c *Client) RPUSH(key string, value ...interface{}) (int64, error)
- func (c *Client) SADD(key string, values ...interface{}) error
- func (c *Client) SET(key string, value interface{}, t time.Duration) (string, error)
- func (c *Client) SETNX(key string, value interface{}, t time.Duration) (bool, error)
- func (c *Client) SMEMBERS(key string) ([]string, error)
- func (c *Client) SPOP(key string) (string, error)
- func (c *Client) SREM(key string, values ...interface{}) error
- func (c *Client) ScriptExists(sha ...string) ([]bool, error)
- func (c *Client) ScriptLoad(script string) (string, error)
- func (c *Client) XACK(stream, group string, ids ...string) error
- func (c *Client) XADD(stream, id string, maxlen int64, vals map[string]interface{}) error
- func (c *Client) XADDJSON(stream string, vals map[string]interface{}) error
- func (c *Client) XCLAIM(stream, group, consumer string, minIdle time.Duration, ids ...string) error
- func (c *Client) XGROUP_CREATE(stream, group, start string) (string, error)
- func (c *Client) XGROUP_DELCONSUMER(stream, group, consumer string) error
- func (c *Client) XGROUP_DELETE(stream, group string) error
- func (c *Client) XGROUP_READ(stream, group, consumer, start string, count int64, timeout time.Duration, ...) (*map[string]map[string]interface{}, error)
- func (c *Client) XGROUP_SETID(stream, group, start string) error
- func (c *Client) XINFO_GROUPS(stream string) (*map[string]map[string]interface{}, error)
- func (c *Client) XPENDING_SCAN(stream, group, consumer, start, end string, count int64) (*map[string]map[string]interface{}, error)
- func (c *Client) ZADD(name string, score float64, member interface{}) error
- func (c *Client) ZPOPMAX(key string) ([]redis.Z, error)
- func (c *Client) ZPOPMIN(key string) ([]redis.Z, error)
- func (c *Client) ZRANGE(key string, start int64, stop int64) ([]string, error)
- func (c *Client) ZREM(name string, member string) error
- func (c *Client) ZRevRangeByScore(key, min, max string, count int64) ([]string, error)
- type RedisCfg
Constants ¶
View Source
const ResultNil = redis.Nil
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is for
func (*Client) HINCRFLOAT ¶
func (*Client) XADDJSON ¶
XADDJSON is for add message to stream, if stream not exist, stream will create. XADDJSON will format all interface{} value to json str.
func (*Client) XGROUP_CREATE ¶
XGROUP_CREATE create consumer group.
func (*Client) XGROUP_DELCONSUMER ¶
XGROUP_DELCONSUMER delete consumer from group.
func (*Client) XGROUP_DELETE ¶
XGROUP_DELETE delete consumer group.
func (*Client) XGROUP_READ ¶
func (c *Client) XGROUP_READ(stream, group, consumer, start string, count int64, timeout time.Duration, noAck bool, jsonDecode bool) (*map[string]map[string]interface{}, error)
XGROUP_READ is for read message from stream
func (*Client) XGROUP_SETID ¶
XGROUP_SETID modify consumer group start.
func (*Client) XINFO_GROUPS ¶
XINFO_GROUPS is for get stream group info
func (*Client) XPENDING_SCAN ¶
func (c *Client) XPENDING_SCAN(stream, group, consumer, start, end string, count int64) (*map[string]map[string]interface{}, error)
XPENDING_SCAN is for read message only received not ack.
Click to show internal directories.
Click to hide internal directories.