Documentation
¶
Index ¶
- type Group
- type Multi
- type Option
- type Pool
- type Redis
- func (r *Redis) BitCount(key []byte) (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, args ...interface{}) (reply interface{}, err error)
- func (r *Redis) Exists(key []byte) (exists bool, err error)
- func (r *Redis) Expire(key []byte, timeoutSecond int64) (ok bool, err error)
- func (r *Redis) ExpireAt(key []byte, unixTimestamp int64) (ok bool, err error)
- func (r *Redis) Get(key []byte) (value []byte, err error)
- func (r *Redis) GetBit(key []byte, offset int) (val int, err error)
- func (r *Redis) GetInt(key []byte) (value int, err error)
- func (r *Redis) GetInt64(key []byte) (value int64, err error)
- func (r *Redis) GetString(key []byte) (value string, err error)
- func (r *Redis) HGet(key []byte, field []byte) (value []byte, err error)
- func (r *Redis) HGetInt(key []byte, field []byte) (value int, err error)
- func (r *Redis) HGetInt64(key []byte, field []byte) (value int64, err error)
- func (r *Redis) HGetString(key []byte, field []byte) (value string, err error)
- func (r *Redis) HMGet(key []byte, fields []string) (values []string, err error)
- func (r *Redis) HMGetMap(key []byte, fields []string) (fieldValues map[string]string, err error)
- func (r *Redis) HMSet(key []byte, fieldValues map[string]interface{}) (ok bool, err error)
- func (r *Redis) HSet(key []byte, field []byte, value interface{}) (exists bool, err error)
- func (r *Redis) Multi() *Multi
- func (r *Redis) Persist(key []byte) (ok bool, 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 []byte, params ...interface{}) (ok bool, err error)
- func (r *Redis) SetBit(key []byte, offset int, value int) (ok bool, err error)
- func (r *Redis) SetRange(key []byte, offset int, value []byte) (length int, err error)
- func (r *Redis) SetTimeout(key []byte, value interface{}, timeoutSecond int64) (ok bool, err error)
- func (r *Redis) Strlen(key []byte) (length int, err error)
- func (r *Redis) Ttl(key []byte) (timeout int64, err error)
- func (r *Redis) Type(key []byte) (tp 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) ScanStrings ¶
func (*Redis) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.