Documentation ¶
Index ¶
- func Connect(addr string, db int, password string) 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 GetStatistics(key string, duration time.Duration, t time.Time) int64
- func GetStatisticsForFloat(key string, duration time.Duration, t time.Time) float64
- 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 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 SMembers(key string) ([]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 Statistics(key string, durations ...time.Duration)
- func StatisticsIncr(key string, durations ...time.Duration)
- func StatisticsIncrBy(key string, val int64, durations ...time.Duration)
- func StatisticsIncrByFloat(key string, val float64, durations ...time.Duration)
- func TryLock(key string, timeout time.Duration) (bool, error)
- func Ttl(key string) (time.Duration, error)
- func Unlock(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreqTryLock ¶
func GetFloat64 ¶
func GetStatisticsForFloat ¶
func SetNxWithTimeout ¶
func Statistics ¶
func StatisticsIncr ¶
func StatisticsIncrByFloat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.