Documentation ¶
Index ¶
- func Default() *redis.Client
- func Nil(err error) bool
- func Redis(ctx context.Context, config *configs.Config) error
- type Component
- type Config
- type CtxRedis
- func (c *CtxRedis) Decr(key string) *redis.IntCmd
- func (c *CtxRedis) DecrBy(key string, decrement int64) *redis.IntCmd
- func (c *CtxRedis) Del(key string) *redis.IntCmd
- func (c *CtxRedis) Exists(keys ...string) *redis.IntCmd
- func (c *CtxRedis) Expire(key string, expiration time.Duration) *redis.BoolCmd
- func (c *CtxRedis) ExpireAt(key string, tm time.Time) *redis.BoolCmd
- func (c *CtxRedis) Get(key string) *redis.StringCmd
- func (c *CtxRedis) GetRange(key string, start, end int64) *redis.StringCmd
- func (c *CtxRedis) GetSet(key string, value interface{}) *redis.StringCmd
- func (c *CtxRedis) HDel(key string, fields ...string) *redis.IntCmd
- func (c *CtxRedis) HExists(key, field string) *redis.BoolCmd
- func (c *CtxRedis) HGet(key, field string) *redis.StringCmd
- func (c *CtxRedis) HGetAll(key string) *redis.MapStringStringCmd
- func (c *CtxRedis) HIncrBy(key, field string, incr int64) *redis.IntCmd
- func (c *CtxRedis) HIncrByFloat(key, field string, incr float64) *redis.FloatCmd
- func (c *CtxRedis) HKeys(key string) *redis.StringSliceCmd
- func (c *CtxRedis) HLen(key string) *redis.IntCmd
- func (c *CtxRedis) HScan(key string, cursor uint64, match string, count int64) *redis.ScanCmd
- func (c *CtxRedis) HSet(key string, value ...interface{}) *redis.IntCmd
- func (c *CtxRedis) HSetNX(key, field string, value interface{}) *redis.BoolCmd
- func (c *CtxRedis) HVals(key string) *redis.StringSliceCmd
- func (c *CtxRedis) Incr(key string) *redis.IntCmd
- func (c *CtxRedis) IncrBy(key string, value int64) *redis.IntCmd
- func (c *CtxRedis) IncrByFloat(key string, value float64) *redis.FloatCmd
- func (c *CtxRedis) LLen(key string) *redis.IntCmd
- func (c *CtxRedis) LPop(key string) *redis.StringCmd
- func (c *CtxRedis) LPush(key string, values ...interface{}) *redis.IntCmd
- func (c *CtxRedis) LRange(key string, start, stop int64) *redis.StringSliceCmd
- func (c *CtxRedis) LRem(key string, count int64, value interface{}) *redis.IntCmd
- func (c *CtxRedis) LTrim(key string, start, stop int64) *redis.StatusCmd
- func (c *CtxRedis) PFAdd(key string, els ...interface{}) *redis.IntCmd
- func (c *CtxRedis) PFCount(keys ...string) *redis.IntCmd
- func (c *CtxRedis) PFMerge(dest string, keys ...string) *redis.StatusCmd
- func (c *CtxRedis) RPop(key string) *redis.StringCmd
- func (c *CtxRedis) RPush(key string, values ...interface{}) *redis.IntCmd
- func (c *CtxRedis) ScanType(cursor uint64, match string, count int64, keyType string) *redis.ScanCmd
- func (c *CtxRedis) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (c *CtxRedis) SetEx(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (c *CtxRedis) SetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
- func (c *CtxRedis) SetRange(key string, offset int64, value string) *redis.IntCmd
- func (c *CtxRedis) SetXX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
- func (c *CtxRedis) TTL(key string) *redis.DurationCmd
- func (c *CtxRedis) ZAdd(key string, members ...redis.Z) *redis.IntCmd
- func (c *CtxRedis) ZAddArgs(key string, args redis.ZAddArgs) *redis.IntCmd
- func (c *CtxRedis) ZAddArgsIncr(key string, args redis.ZAddArgs) *redis.FloatCmd
- func (c *CtxRedis) ZAddNX(key string, members ...redis.Z) *redis.IntCmd
- func (c *CtxRedis) ZAddXX(key string, members ...redis.Z) *redis.IntCmd
- func (c *CtxRedis) ZRangeByLex(key string, opt *redis.ZRangeBy) *redis.StringSliceCmd
- func (c *CtxRedis) ZRangeByScore(key string, opt *redis.ZRangeBy) *redis.StringSliceCmd
- func (c *CtxRedis) ZRangeByScoreWithScores(key string, opt *redis.ZRangeBy) *redis.ZSliceCmd
- func (c *CtxRedis) ZRangeWithScores(key string, start, stop int64) *redis.ZSliceCmd
- func (c *CtxRedis) ZRemRangeByLex(key, min, max string) *redis.IntCmd
- func (c *CtxRedis) ZRemRangeByRank(key string, start, stop int64) *redis.IntCmd
- func (c *CtxRedis) ZRemRangeByScore(key, min, max string) *redis.IntCmd
- func (c *CtxRedis) ZRevRangeByLex(key string, opt *redis.ZRangeBy) *redis.StringSliceCmd
- func (c *CtxRedis) ZRevRangeByScore(key string, opt *redis.ZRangeBy) *redis.StringSliceCmd
- func (c *CtxRedis) ZRevRangeByScoreWithScores(key string, opt *redis.ZRangeBy) *redis.ZSliceCmd
- func (c *CtxRedis) ZRevRangeWithScores(key string, start, stop int64) *redis.ZSliceCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CtxRedis ¶
type CtxRedis struct { *redis.Client // contains filtered or unexported fields }
CtxRedis 简化操作,慢慢封装
func (*CtxRedis) HIncrByFloat ¶
func (*CtxRedis) IncrByFloat ¶
func (*CtxRedis) ZAddArgsIncr ¶
func (*CtxRedis) ZRangeByLex ¶
func (*CtxRedis) ZRangeByScore ¶
func (*CtxRedis) ZRangeByScoreWithScores ¶
func (*CtxRedis) ZRangeWithScores ¶
func (*CtxRedis) ZRemRangeByLex ¶
func (*CtxRedis) ZRemRangeByRank ¶
func (*CtxRedis) ZRemRangeByScore ¶
func (*CtxRedis) ZRevRangeByLex ¶
func (*CtxRedis) ZRevRangeByScore ¶
func (*CtxRedis) ZRevRangeByScoreWithScores ¶
func (*CtxRedis) ZRevRangeWithScores ¶
Click to show internal directories.
Click to hide internal directories.