Documentation ¶
Index ¶
- type Group
- type Multi
- type Option
- type Pool
- type Redis
- func (r *Redis) BitCount(key interface{}) (count int, err error)
- func (r *Redis) Close() (err error)
- func (r *Redis) Del(keys ...interface{}) (successCount int64, err error)
- func (r *Redis) Do(cmd string, key interface{}, params ...interface{}) (reply interface{}, err error)
- func (r *Redis) Exists(key interface{}) (res int, err error)
- func (r *Redis) Expire(key interface{}, timeoutSecond int64) (ok bool, err error)
- func (r *Redis) ExpireAt(key interface{}, unixTimestamp int64) (ok bool, err error)
- func (r *Redis) Get(key interface{}) (value interface{}, err error)
- func (r *Redis) GetBit(key interface{}, offset int) (val int, err error)
- func (r *Redis) GetBytes(key interface{}) (value []byte, err error)
- func (r *Redis) GetInt64(key interface{}) (value int64, err error)
- func (r *Redis) GetRange(key interface{}, start int, end int) (val string, err error)
- func (r *Redis) GetString(key interface{}) (value string, err error)
- func (r *Redis) HDel(key interface{}, fields ...interface{}) (delCount int, err error)
- func (r *Redis) HExists(key interface{}, field string) (exists bool, err error)
- func (r *Redis) HGet(key interface{}, field string) (value []byte, err error)
- func (r *Redis) HGetAll(key interface{}) (fieldValues map[string]string, err error)
- func (r *Redis) HGetInt64(key interface{}, field string) (value int64, err error)
- func (r *Redis) HGetString(key interface{}, field string) (value string, err error)
- func (r *Redis) HIncrBy(key interface{}, field string, value int64) (newValue int64, err error)
- func (r *Redis) HIncrByFloat(key interface{}, field string, value float64) (newValue float64, err error)
- func (r *Redis) HKeys(key interface{}) (keyList []string, err error)
- func (r *Redis) HLen(key interface{}) (length int, err error)
- func (r *Redis) HMGet(key interface{}, args ...interface{}) (values []string, err error)
- func (r *Redis) HMGetByArray(key interface{}, fields []string) (values []string, err error)
- func (r *Redis) HMGetMap(key interface{}, fields []string) (fieldValues map[string]string, err error)
- func (r *Redis) HMSet(key interface{}, args ...interface{}) (ok bool, err error)
- func (r *Redis) HMSetByMap(key interface{}, fieldValues map[string]interface{}) (ok bool, err error)
- func (r *Redis) HSet(key interface{}, field string, value interface{}) (isNew int, err error)
- func (r *Redis) HSetNx(key interface{}, field string, value interface{}) (ok bool, err error)
- func (r *Redis) LIndex(key interface{}, index int) (item interface{}, err error)
- func (r *Redis) LLen(key interface{}) (length int, err error)
- func (r *Redis) LPop(key interface{}) (item interface{}, err error)
- func (r *Redis) LPush(key interface{}, items ...interface{}) (totalLength int, err error)
- func (r *Redis) LRange(key interface{}, start int, end int) (items []string, err error)
- func (r *Redis) LRem(key interface{}, count int, value interface{}) (remCount int, err error)
- func (r *Redis) LSet(key interface{}, index int, value interface{}) (ok bool, err error)
- func (r *Redis) LTrim(key interface{}, start int, end int) (ok bool, err error)
- func (r *Redis) Multi() *Multi
- func (r *Redis) Persist(key interface{}) (ok bool, err error)
- func (r *Redis) RPop(key interface{}) (item interface{}, err error)
- func (r *Redis) RPopLPush(source, destination interface{}) (item interface{}, err error)
- func (r *Redis) RPush(key interface{}, items ...interface{}) (totalLength int, err error)
- func (r *Redis) SAdd(key interface{}, items ...interface{}) (newCount int, err error)
- func (r *Redis) SCard(key interface{}) (total int, err error)
- func (r *Redis) SIsMember(key interface{}, item interface{}) (exists bool, err error)
- func (r *Redis) SMembers(key interface{}) (items []string, err error)
- func (r *Redis) SPop(key interface{}) (item interface{}, err error)
- func (r *Redis) Scan(cursor int64, pattern string, count int64) (nextCursor int64, keys [][]byte, err error)
- func (r *Redis) ScanStrings(cursor int64, pattern string, count int64) (nextCursor int64, keys []string, err error)
- func (r *Redis) Send(cmd string, args ...interface{}) (err error)
- func (r *Redis) Set(key interface{}, params ...interface{}) (ok bool, err error)
- func (r *Redis) SetBit(key interface{}, offset int, value int) (ok bool, err error)
- func (r *Redis) SetEx(key interface{}, value interface{}, timeoutSecond int64) (ok bool, err error)
- func (r *Redis) SetRange(key interface{}, offset int, value []byte) (length int, err error)
- func (r *Redis) Strlen(key interface{}) (length int, err error)
- func (r *Redis) Ttl(key interface{}) (timeout int64, err error)
- func (r *Redis) Type(key interface{}) (tp string, err error)
- func (r *Redis) ZAdd(key interface{}, args ...interface{}) (newCount int, err error)
- func (r *Redis) ZCard(key interface{}) (total int, err error)
- func (r *Redis) ZCount(key interface{}, min, max int) (num int, err error)
- func (r *Redis) ZRange(key interface{}, start, stop int) (items []string, err error)
- func (r *Redis) ZRangeWithScores(key interface{}, start, stop int) (items map[string]string, err error)
- func (r *Redis) ZRank(key interface{}, item interface{}) (rank int, err error)
- func (r *Redis) ZRevRange(key interface{}, start, stop int) (items []string, err error)
- func (r *Redis) ZRevRangeWithScores(key interface{}, start, stop int) (items map[string]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multi ¶
type Multi struct {
// contains filtered or unexported fields
}
func (*Multi) ExecPipeline ¶
type Option ¶
type Option struct { Host string `yaml:"host" json:"host"` Port string `yaml:"port" json:"port"` Auth string `yaml:"auth" json:"auth"` Db uint8 `yaml:"db" json:"db"` //单位s MaxConnLifetime int `yaml:"maxConnLifetime" json:"maxConnLifetime"` MaxIdle int `yaml:"maxIdle" json:"maxIdle"` MaxActive int `yaml:"maxActive" json:"maxActive"` Wait bool `yaml:"wait" json:"wait"` //单位ms ConnectTimeout int `yaml:"connectTimeout" json:"connectTimeout"` //单位ms ReadTimeout int `yaml:"readTimeout" json:"readTimeout"` //单位ms WriteTimeout int `yaml:"writeTimeout" json:"writeTimeout"` }
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) HGetString ¶
func (*Redis) HIncrByFloat ¶ added in v0.0.2
func (*Redis) HMGetByArray ¶ added in v0.0.2
func (*Redis) HMSetByMap ¶ added in v0.0.2
func (*Redis) ScanStrings ¶
func (*Redis) ZRangeWithScores ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.