Documentation ¶
Index ¶
- Variables
- func Connect(o *Config) (err error)
- func Decr(key string) (int64, error)
- func DecrBy(key string, value int64) (int64, error)
- func Del(keys ...string) (int64, error)
- func Exists(keys ...string) (bool, error)
- func Expire(key string, timeout time.Duration) (bool, error)
- func FreqCheck(key string, limit int64, timeout time.Duration) (bool, error)
- func FreqTryLock(key string, limit int64, timeout time.Duration) (time.Duration, error)
- func Get(key string) (string, error)
- func GetFloat64(key string) (float64, error)
- func GetInt64(key string) (int64, error)
- func GetJson(key string, j interface{}) error
- func GetUint64(key string) (uint64, error)
- func HDecr(key string, field string) (int64, error)
- func HDecrBy(key string, field string, increment int64) (int64, error)
- func HDel(key string, fields ...string) (int64, error)
- func HExists(key, field string) (bool, error)
- func HGet(key, field string) (string, error)
- func HGetAll(key string) (map[string]string, error)
- func HGetJson(key, field string, j interface{}) error
- func HIncr(key string, subKey string) (int64, error)
- func HIncrBy(key string, field string, increment int64) (int64, error)
- func HIncrByFloat(key string, field string, increment float64) (float64, error)
- func HKeys(key string) ([]string, error)
- func HSet(key string, field string, value interface{}) (bool, error)
- func HVals(key string) ([]string, error)
- func Incr(key string) (int64, error)
- func IncrBy(key string, value int64) (int64, error)
- func IncrByFloat(key string, increment float64) (float64, error)
- func Lock(key string, timeout time.Duration)
- func SAdd(key string, members ...string) (int64, error)
- func SISMember(key, field string) (bool, error)
- func SMembers(key string) ([]string, error)
- func SPop(key string) (string, error)
- func SRandMember(key string, count ...int64) ([]string, error)
- func SRem(key string, members ...string) (int64, error)
- func Set(key string, value interface{}) (bool, error)
- func SetEx(key string, value interface{}, timeout time.Duration) (bool, error)
- func SetNx(key string, value interface{}) (bool, error)
- func SetNxWithTimeout(key string, value interface{}, timeout time.Duration) (bool, error)
- func TryLock(key string, timeout time.Duration) (bool, error)
- func Ttl(key string) (time.Duration, error)
- func Unlock(key string) error
- type Client
- func (p *Client) Close() error
- func (p *Client) Decr(key string) (int64, error)
- func (p *Client) DecrBy(key string, value int64) (int64, error)
- func (p *Client) Del(keys ...string) (int64, error)
- func (p *Client) Exists(keys ...string) (bool, error)
- func (p *Client) Expire(key string, timeout time.Duration) (bool, error)
- func (p *Client) FreqCheck(key string, limit int64, timeout time.Duration) (bool, error)
- func (p *Client) FreqTryLock(key string, limit int64, timeout time.Duration) (time.Duration, error)
- func (p *Client) Get(key string) (string, error)
- func (p *Client) GetFloat64(key string) (float64, error)
- func (p *Client) GetInt64(key string) (int64, error)
- func (p *Client) GetJson(key string, j interface{}) error
- func (p *Client) GetUint64(key string) (uint64, error)
- func (p *Client) HDecr(key string, field string) (int64, error)
- func (p *Client) HDecrBy(key string, field string, increment int64) (int64, error)
- func (p *Client) HDel(key string, fields ...string) (int64, error)
- func (p *Client) HExists(key, field string) (bool, error)
- func (p *Client) HGet(key, field string) (string, error)
- func (p *Client) HGetAll(key string) (map[string]string, error)
- func (p *Client) HGetJson(key, field string, j interface{}) error
- func (p *Client) HIncr(key string, subKey string) (int64, error)
- func (p *Client) HIncrBy(key string, field string, increment int64) (int64, error)
- func (p *Client) HIncrByFloat(key string, field string, increment float64) (float64, error)
- func (p *Client) HKeys(key string) ([]string, error)
- func (p *Client) HSet(key string, field string, value interface{}) (bool, error)
- func (p *Client) HVals(key string) ([]string, error)
- func (p *Client) Incr(key string) (int64, error)
- func (p *Client) IncrBy(key string, value int64) (int64, error)
- func (p *Client) IncrByFloat(key string, increment float64) (float64, error)
- func (p *Client) SAdd(key string, members ...string) (int64, error)
- func (p *Client) SISMember(key, field string) (bool, error)
- func (p *Client) SMembers(key string) ([]string, error)
- func (p *Client) SPop(key string) (string, error)
- func (p *Client) SRandMember(key string, count ...int64) ([]string, error)
- func (p *Client) SRem(key string, members ...string) (int64, error)
- func (p *Client) Set(key string, value interface{}) (bool, error)
- func (p *Client) SetEx(key string, value interface{}, timeout time.Duration) (bool, error)
- func (p *Client) SetNx(key string, value interface{}) (bool, error)
- func (p *Client) SetNxWithTimeout(key string, value interface{}, timeout time.Duration) (bool, error)
- func (p *Client) Ttl(key string) (time.Duration, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = errors.New("key not found")
Functions ¶
func FreqTryLock ¶
func GetFloat64 ¶
func SetNxWithTimeout ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FreqTryLock ¶
func (*Client) HIncrByFloat ¶
func (*Client) IncrByFloat ¶
func (*Client) SRandMember ¶
func (*Client) SetNxWithTimeout ¶
Click to show internal directories.
Click to hide internal directories.