Documentation ¶
Index ¶
- func New(conf Config) *redis.Client
- type Config
- type Control
- func (p *Control) ErrRedisDel(key string) bool
- func (p *Control) ErrRedisExists(key string) (bool, bool)
- func (p *Control) ErrRedisExpire(key string, lifetime int) bool
- func (p *Control) ErrRedisGet(key string) (string, bool)
- func (p *Control) ErrRedisHDel(key, field string) bool
- func (p *Control) ErrRedisHExists(key, field string) (bool, bool)
- func (p *Control) ErrRedisHGet(key, field string) (string, bool)
- func (p *Control) ErrRedisHScan(key string, cursor uint64, match string, count int64) ([]string, uint64, bool)
- func (p *Control) ErrRedisHSet(key, field, value string) bool
- func (p *Control) ErrRedisIncr(key string) (int64, bool)
- func (p *Control) ErrRedisLRange(key string, start, end int64) ([]string, bool)
- func (p *Control) ErrRedisPop(key string) (string, bool)
- func (p *Control) ErrRedisPush(key, value string) bool
- func (p *Control) ErrRedisSMembers(key string) ([]string, bool)
- func (p *Control) ErrRedisSadd(key string, members ...interface{}) (int64, bool)
- func (p *Control) ErrRedisScan(cursor uint64, match string, count int64) ([]string, uint64, bool)
- func (p *Control) ErrRedisSet(key, value string, sec int) bool
- func (p *Control) ErrRedisZADD(key string, members ...*redis.Z) (int64, bool)
- func (p *Control) ErrRedisZIncrBy(key string, increment float64, member string) (float64, bool)
- func (p *Control) ErrRedisZRange(key string, start, stop int64) ([]string, bool)
- func (p *Control) ErrRedisZRevRange(key string, start, stop int64) ([]string, bool)
- func (p *Control) ErrRedisZRevRangeWithScores(key string, start, stop int64) ([]redis.Z, bool)
- func (p *Control) RedisDel(key string)
- func (p *Control) RedisExists(key string) bool
- func (p *Control) RedisExpire(key string, lifetime int)
- func (p *Control) RedisGet(key string) string
- func (p *Control) RedisHDel(key, field string)
- func (p *Control) RedisHExists(key, field string) bool
- func (p *Control) RedisHGet(key, field string) string
- func (p *Control) RedisHScan(key string, cursor uint64, match string, count int64) ([]string, uint64)
- func (p *Control) RedisHSet(key, field, value string)
- func (p *Control) RedisIncr(key string) int64
- func (p *Control) RedisLRange(key string, start, end int64) []string
- func (p *Control) RedisPop(key string) string
- func (p *Control) RedisPush(key, value string)
- func (p *Control) RedisSMembers(key string) []string
- func (p *Control) RedisSadd(key string, members ...interface{}) int64
- func (p *Control) RedisScan(cursor uint64, match string, count int64) ([]string, uint64)
- func (p *Control) RedisSet(key, value string, sec int)
- func (p *Control) RedisZADD(key string, members ...*redis.Z) int64
- func (p *Control) RedisZIncrBy(key string, increment float64, member string) float64
- func (p *Control) RedisZRange(key string, start, stop int64) []string
- func (p *Control) RedisZRevRange(key string, start, stop int64) []string
- func (p *Control) RedisZRevRangeWithScores(key string, start, stop int64) []redis.Z
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
type Control struct {
Conn *redis.Client
}
func (*Control) ErrRedisDel ¶
func (*Control) ErrRedisHDel ¶
func (*Control) ErrRedisHScan ¶
func (*Control) ErrRedisHSet ¶
func (*Control) ErrRedisLRange ¶
func (*Control) ErrRedisPush ¶
func (*Control) ErrRedisSadd ¶
func (*Control) ErrRedisScan ¶
func (*Control) ErrRedisZADD ¶
set 类型 ***************************** 有序合集 set *****************************
func (*Control) ErrRedisZIncrBy ¶
func (*Control) ErrRedisZRange ¶
***************************** ZRange *****************************
func (*Control) ErrRedisZRevRange ¶
***************************** ZRevRange *****************************
func (*Control) ErrRedisZRevRangeWithScores ¶
***************************** ZRevRangeWithScores *****************************
func (*Control) RedisExists ¶
func (*Control) RedisExpire ¶
func (*Control) RedisHExists ¶
func (*Control) RedisHScan ¶
func (*Control) RedisSMembers ¶
func (*Control) RedisZIncrBy ¶
func (*Control) RedisZRevRange ¶
func (*Control) RedisZRevRangeWithScores ¶
Click to show internal directories.
Click to hide internal directories.