Documentation
¶
Index ¶
- Constants
- func IsBadConn(err error, allowTimeout bool) bool
- func IsLoadingError(err error) bool
- func IsMovedError(err error) (moved bool, ask bool, addr string)
- func IsReadOnlyError(err error) bool
- func IsRedisError(err error) bool
- func IsRetryableError(err error, retryTimeout bool) bool
- type Client
- func (c *Client) DecrBy(ctx context.Context, key string, by int64) (int64, error)
- func (c *Client) Del(ctx context.Context, keys ...string) error
- func (c *Client) Eval(ctx context.Context, script string, keys []string, argvs ...interface{}) (result *EvalReturn, err error)
- func (c *Client) Expire(ctx context.Context, key string, ttl int32) error
- func (c *Client) Get(ctx context.Context, key string) (item *Item, err error)
- func (c *Client) IncrBy(ctx context.Context, key string, by int64) (i int64, err error)
- func (c *Client) MGet(ctx context.Context, keys []string) (items map[string]*Item, err error)
- func (c *Client) PoolStats() *pool.Stats
- func (c *Client) SAdd(ctx context.Context, key string, data ...[]byte) (err error)
- func (c *Client) SCard(ctx context.Context, key string) (card int64, err error)
- func (c *Client) SIsMember(ctx context.Context, key string, data []byte) (result bool, err error)
- func (c *Client) SMembers(ctx context.Context, key string) (items [][]byte, err error)
- func (c *Client) SPop(ctx context.Context, key string, cnt int32) (data [][]byte, err error)
- func (c *Client) SRem(ctx context.Context, key string, data ...[]byte) (result int64, err error)
- func (c *Client) Set(ctx context.Context, item *Item) error
- func (c *Client) Stats() *pool.Stats
- func (c *Client) TTL(ctx context.Context, key string) (ttl int32, err error)
- func (c *Client) ZAdd(ctx context.Context, item *Item) (added int64, err error)
- func (c *Client) ZCard(ctx context.Context, key string) (card int64, err error)
- func (c *Client) ZCount(ctx context.Context, key, min, max string) (i int64, err error)
- func (c *Client) ZIncrBy(ctx context.Context, key, member string, by float64) error
- func (c *Client) ZRange(ctx context.Context, key string, start, stop int64) (values []*ZSetValue, err error)
- func (c *Client) ZRangeByScore(ctx context.Context, key string, min, max float64, offset, count int64) (values []*ZSetValue, err error)
- func (c *Client) ZRank(ctx context.Context, key, member string) (rank int64, err error)
- func (c *Client) ZRem(ctx context.Context, keys ...string) error
- func (c *Client) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) (i int64, err error)
- func (c *Client) ZRemRangeByScore(ctx context.Context, key, min, max string) (i int64, err error)
- func (c *Client) ZRevRange(ctx context.Context, key string, start, stop int64) (values []*ZSetValue, err error)
- func (c *Client) ZRevRangeByScore(ctx context.Context, key string, max, min float64, offset, count int64) (values []*ZSetValue, err error)
- func (c *Client) ZRevRank(ctx context.Context, key, member string) (rank int64, err error)
- func (c *Client) ZScore(ctx context.Context, key, member string) (score float64, err error)
- type EvalReturn
- type Item
- type Options
- type ZSetValue
Constants ¶
View Source
const ( FlagNX = 1 << 0 FlagXX = 1 << 1 FlagCH = 1 << 2 )
View Source
const Nil = protocol.Nil
Variables ¶
This section is empty.
Functions ¶
func IsLoadingError ¶
func IsReadOnlyError ¶
func IsRedisError ¶
func IsRetryableError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ZRangeByScore ¶
func (*Client) ZRemRangeByRank ¶
func (*Client) ZRemRangeByScore ¶
func (*Client) ZRevRangeByScore ¶
type EvalReturn ¶
type EvalReturn struct {
// contains filtered or unexported fields
}
func (EvalReturn) Array ¶
func (e EvalReturn) Array() ([]interface{}, error)
func (EvalReturn) Int64 ¶
func (e EvalReturn) Int64() (int64, error)
func (EvalReturn) Interface ¶
func (e EvalReturn) Interface() interface{}
func (EvalReturn) String ¶
func (e EvalReturn) String() (string, error)
Click to show internal directories.
Click to hide internal directories.