Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) DBSize() (int64, error)
- func (c *Client) Decr(key string) (int64, error)
- func (c *Client) DecrBy(key string, increment int64) (int64, error)
- func (c *Client) DecrByFloat(key string, increment float64) (float64, error)
- func (c *Client) Del(keys ...string) (int64, error)
- func (c *Client) Echo(message string) (string, error)
- func (c *Client) Exists(key string) (bool, error)
- func (c *Client) Expire(key string, seconds int64) error
- func (c *Client) ExpireAt(key string, timestamp int64) error
- func (c *Client) FlushAll() error
- func (c *Client) FlushDB() error
- func (c *Client) Get(key string) (string, error)
- func (c *Client) GetSet(key string, value interface{}) (old string, err error)
- func (c *Client) HDel(key string, fields ...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) HIncrBy(key string, field string, increment int) (int64, error)
- func (c *Client) HIncrByFloat(key string, field string, increment float64) (float64, error)
- func (c *Client) HKeys(key string) ([]string, error)
- func (c *Client) HLen(key string) (int64, error)
- func (c *Client) HMGet(key string, fields ...string) (map[string]string, error)
- func (c *Client) HMSet(key string, values map[string]interface{}) (bool, error)
- func (c *Client) HScan(key string, cursor int, match string, count int) (map[string]string, int, error)
- func (c *Client) HSet(key string, fields map[string]interface{}) (int64, error)
- func (c *Client) HSetNX(key string, field string, value interface{}) (bool, error)
- func (c *Client) HVals(key string) ([]string, error)
- func (c *Client) Incr(key string) (int64, error)
- func (c *Client) IncrBy(key string, increment int64) (int64, error)
- func (c *Client) IncrByFloat(key string, increment float64) (float64, error)
- func (c *Client) Keys(pattern string) ([]string, error)
- func (c *Client) LIndex(key string, index int) (string, error)
- func (c *Client) LInsert(key string, op string, pivot string, value string) (int64, error)
- func (c *Client) LLen(key string) (int64, error)
- func (c *Client) LOLWUT() (string, error)
- func (c *Client) LPop(key string) (string, error)
- func (c *Client) LPush(key string, elements ...interface{}) (int64, error)
- func (c *Client) LRange(key string, start int64, stop int64) ([]string, error)
- func (c *Client) LRem(key string, count int, element string) (int64, error)
- func (c *Client) LSet(key string, index int, element string) error
- func (c *Client) LTrim(key string, start, stop int64) (int64, error)
- func (c *Client) MGet(keys ...string) (map[string]string, error)
- func (c *Client) MSet(kv map[string]interface{}) error
- func (c *Client) PExpire(key string, milliseconds int64) error
- func (c *Client) PExpireAt(key string, timestamp int64) error
- func (c *Client) PSetEx(key string, value interface{}, milliseconds int64) error
- func (c *Client) Persist(key string) error
- func (c *Client) Ping() (string, error)
- func (c *Client) RPop(key string) (string, error)
- func (c *Client) RPopLPush(source string, destination string) (string, error)
- func (c *Client) RPush(key string, elements ...interface{}) (int64, error)
- func (c *Client) RandomKey() (string, error)
- func (c *Client) Rename(key, newKey string) error
- func (c *Client) RenameNX(key, newKey string) (bool, error)
- func (c *Client) SAdd(key string, members ...interface{}) (int64, error)
- func (c *Client) SCard(key string) (int64, error)
- func (c *Client) SDiff(keys ...string) ([]string, error)
- func (c *Client) SDiffStore(destination string, keys ...string) (int64, error)
- func (c *Client) SInter(keys ...string) ([]string, error)
- func (c *Client) SInterStore(destination string, keys ...string) (int64, error)
- func (c *Client) SIsMember(key string, member interface{}) (bool, error)
- func (c *Client) SMembers(key string) ([]string, error)
- func (c *Client) SMove(source, destination string, member interface{}) error
- func (c *Client) SPop(key string) (string, error)
- func (c *Client) SRandMember(key string) (string, error)
- func (c *Client) SRem(key string, members ...interface{}) (int64, error)
- func (c *Client) SScan(key string, cursor uint64, match string, count int64) ([]string, uint64, error)
- func (c *Client) SUnion(keys ...string) ([]string, error)
- func (c *Client) SUnionStore(destination string, keys ...string) (int64, error)
- func (c *Client) Scan(cursor int, match string, count int) ([]string, int, error)
- func (c *Client) Select(index int) error
- func (c *Client) Set(key string, value interface{}) error
- func (c *Client) SetEx(key string, value interface{}, seconds int64) error
- func (c *Client) SetNX(key string, value interface{}, seconds int64) (bool, error)
- func (c *Client) StrLen(key string) (int64, error)
- func (c *Client) TTL(key string) (int64, error)
- func (c *Client) Transaction(f func(tx *redka.Tx) error) error
- func (c *Client) TransactionContext(ctx context.Context, f func(tx *redka.Tx) error) error
- func (c *Client) Type(key string) (string, error)
- func (c *Client) ZAdd(key string, members map[interface{}]float64) (int64, error)
- func (c *Client) ZCard(key string) (int64, error)
- func (c *Client) ZCount(key string, min, max float64) (int64, error)
- func (c *Client) ZIncrBy(key string, increment float64, member string) (float64, error)
- func (c *Client) ZInter(keys ...string) ([]string, error)
- func (c *Client) ZInterStore(destination string, keys ...string) (int64, error)
- func (c *Client) ZRange(key string, start, stop int64) ([]string, error)
- func (c *Client) ZRangeByScore(key string, min, max float64) ([]string, error)
- func (c *Client) ZRank(key, member string) (int64, error)
- func (c *Client) ZRankWithScore(key, member string) (int64, float64, error)
- func (c *Client) ZRem(key string, members ...interface{}) (int64, error)
- func (c *Client) ZRemRangeByRank(key string, start, stop int64) (int64, error)
- func (c *Client) ZRemRangeByScore(key string, min, max float64) (int64, error)
- func (c *Client) ZRevRange(key string, start, stop int64) ([]string, error)
- func (c *Client) ZRevRangeByScore(key string, min, max float64) ([]string, error)
- func (c *Client) ZRevRank(key, member string) (int64, error)
- func (c *Client) ZRevRankWithScore(key, member string) (int64, float64, error)
- func (c *Client) ZScan(key string, cursor uint64, match string, count int64) ([]string, uint64, error)
- func (c *Client) ZScore(key, member string) (float64, error)
- func (c *Client) ZUnion(keys ...string) ([]string, error)
- func (c *Client) ZUnionStore(destination string, keys ...string) (int64, error)
- func (c *Client) ZUnionWithScore(keys ...string) (map[string]float64, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DecrByFloat ¶
func (*Client) HIncrByFloat ¶
func (*Client) IncrByFloat ¶
func (*Client) SDiffStore ¶
func (*Client) SInterStore ¶
func (*Client) SUnionStore ¶
func (*Client) TransactionContext ¶
func (*Client) ZInterStore ¶
func (*Client) ZRangeByScore ¶
func (*Client) ZRankWithScore ¶
func (*Client) ZRemRangeByRank ¶
func (*Client) ZRemRangeByScore ¶
func (*Client) ZRevRangeByScore ¶
func (*Client) ZRevRankWithScore ¶
func (*Client) ZUnionStore ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions() *Options
func (*Options) SetDriverName ¶
Click to show internal directories.
Click to hide internal directories.