Documentation ¶
Index ¶
- type GoRedis
- func (cli *GoRedis) BitCount(key string, start, end int64) (int64, error)
- func (cli *GoRedis) Decr(key string) (int64, error)
- func (cli *GoRedis) DecrBy(key string, value int64) (int64, error)
- func (cli *GoRedis) Del(keys []string) error
- func (cli *GoRedis) Eval(script string, keys []string, args []interface{}) (interface{}, error)
- func (cli *GoRedis) EvalSha(script string, keys []string, args []interface{}) (interface{}, error)
- func (cli *GoRedis) Exists(keys []string) (int64, error)
- func (cli *GoRedis) Expire(key string, expiration int) (bool, error)
- func (cli *GoRedis) Get(key string) (string, error)
- func (cli *GoRedis) GetBit(key string, offset int64) (int64, error)
- func (cli *GoRedis) HDel(key string, fields []string) error
- func (cli *GoRedis) HExists(key, field string) (bool, error)
- func (cli *GoRedis) HGet(key, field string) (string, error)
- func (cli *GoRedis) HGetAll(key string) (map[string]string, error)
- func (cli *GoRedis) HIncrBy(key, field string, incr int64) (int64, error)
- func (cli *GoRedis) HKeys(key string) ([]string, error)
- func (cli *GoRedis) HMGet(key string, fields []string) ([]interface{}, error)
- func (cli *GoRedis) HMSet(key string, fields map[string]interface{}) error
- func (cli *GoRedis) HSet(key, field string, value interface{}) error
- func (cli *GoRedis) HSetNX(key, field string, value interface{}) error
- func (cli *GoRedis) HVals(key string) ([]string, error)
- func (cli *GoRedis) Incr(key string) (int64, error)
- func (cli *GoRedis) IncrBy(key string, value int64) (int64, error)
- func (cli *GoRedis) MGet(keys []string) (map[string]interface{}, error)
- func (cli *GoRedis) MSet(keyValues map[string]interface{}) error
- func (cli *GoRedis) MSetNx(keyValues map[string]interface{}) error
- func (cli *GoRedis) Persist(key string) (bool, error)
- func (cli *GoRedis) Ping() bool
- func (cli *GoRedis) Pipeline() redis.Pipeliner
- func (cli *GoRedis) Pipelined(fn func(redis.Pipeliner) error) ([]redis.Cmder, error)
- func (cli *GoRedis) RenameNX(key, newKey string) (bool, error)
- func (cli *GoRedis) SAdd(key string, member interface{}) (int64, error)
- func (cli *GoRedis) SAdds(key string, members []interface{}) (int64, error)
- func (cli *GoRedis) SCard(key string) (int64, error)
- func (cli *GoRedis) SDiff(keys []string) ([]string, error)
- func (cli *GoRedis) SInter(keys []string) ([]string, error)
- func (cli *GoRedis) SIsMember(key string, member interface{}) (bool, error)
- func (cli *GoRedis) SMembers(key string) ([]string, error)
- func (cli *GoRedis) SRem(key string, member interface{}) (int64, error)
- func (cli *GoRedis) SRems(key string, members []interface{}) (int64, error)
- func (cli *GoRedis) SUnion(keys []string) ([]string, error)
- func (cli *GoRedis) Set(key string, value interface{}) error
- func (cli *GoRedis) SetBit(key string, offset int64, value int) (int64, error)
- func (cli *GoRedis) SetEx(key string, value interface{}, expiration int) error
- func (cli *GoRedis) SetNx(key string, value interface{}) error
- func (cli *GoRedis) SetNxEx(key string, value interface{}, expiration int) (bool, error)
- func (cli *GoRedis) ZAdd(key string, value string, score int64) (int64, error)
- func (cli *GoRedis) ZAddNX(key string, value string, score int64) (int64, error)
- func (cli *GoRedis) ZAdds(key string, valueScore map[string]int64) (int64, error)
- func (cli *GoRedis) ZAddsNX(key string, valueScore map[string]int64) (int64, error)
- func (cli *GoRedis) ZCard(key string) (int64, error)
- func (cli *GoRedis) ZCount(key string, min, max int64) (int64, error)
- func (cli *GoRedis) ZRange(key string, start, end int64) ([]string, error)
- func (cli *GoRedis) ZRangeByScore(key string, min, max int64) ([]string, error)
- func (cli *GoRedis) ZRangeByScoreWithScores(key string, min, max int64) (map[string]int64, error)
- func (cli *GoRedis) ZRangeWithScores(key string, start, end int64) (map[string]int64, error)
- func (cli *GoRedis) ZRem(key string, fields ...interface{}) (int64, error)
- func (cli *GoRedis) ZRemRangeByScore(key string, min, max int64) (int64, error)
- func (cli *GoRedis) ZScore(key string, value string) (int64, error)
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoRedis ¶
type GoRedis struct {
// contains filtered or unexported fields
}
func InitRedis ¶
func InitRedis(conf *RedisConfig) (*GoRedis, error)
func (*GoRedis) Exists ¶
//////////////////////////////////////////////////////// key ////////////////////////////////////////////////////////
func (*GoRedis) HSet ¶
////////////////////////////////////// hash //////////////////////////////////////
func (*GoRedis) Incr ¶
////////////////////////////////////// string //////////////////////////////////////
func (*GoRedis) Pipeline ¶
////////////////////////////////////// 其他高级属性 //////////////////////////////////////
func (*GoRedis) SAdd ¶
////////////////////////////////////// set //////////////////////////////////////
func (*GoRedis) SetBit ¶
////////////////////////////////////// bitmap //////////////////////////////////////
func (*GoRedis) ZAdd ¶
////////////////////////////////////// sorted set //////////////////////////////////////
func (*GoRedis) ZRangeByScore ¶
func (*GoRedis) ZRangeByScoreWithScores ¶
func (*GoRedis) ZRangeWithScores ¶
func (*GoRedis) ZRemRangeByScore ¶
Click to show internal directories.
Click to hide internal directories.