Versions in this module Expand all Collapse all v0 v0.1.0 Mar 19, 2022 Changes in this version + func IsError(err error) bool + func IsNil(err error) bool + func StringMembersToInterface(members []string) []interface + type Redis interface + BRPop func(ctx context.Context, key string, blockTime time.Duration) ([]string, error) + Close func() (err error) + Decr func(ctx context.Context, key string) (int64, error) + DecrBy func(ctx context.Context, key string, decrement int64) (int64, error) + Del func(ctx context.Context, key string) (bool, error) + Exists func(ctx context.Context, key string) (bool, error) + Expire func(ctx context.Context, key string, expiration time.Duration) (bool, error) + ExpireAt func(ctx context.Context, key string, tm time.Time) (bool, error) + FlushDB func(ctx context.Context) error + Get func(ctx context.Context, key string) (string, error) + GetLocker func(name string) lock.Locker + HDel func(ctx context.Context, key string, fields ...string) (delNum int64, err error) + HExists func(ctx context.Context, key string, field string) (exists bool, err error) + HGet func(ctx context.Context, key string, field string) (string, error) + HGetAll func(ctx context.Context, key string) (map[string]string, error) + HIncrBy func(ctx context.Context, key string, field string, incr int64) (int64, error) + HIncrByFloat func(ctx context.Context, key string, field string, incr float64) (float64, error) + HKeys func(ctx context.Context, key string) ([]string, error) + HLen func(ctx context.Context, key string) (int64, error) + HMGet func(ctx context.Context, key string, fields []string) ([]*string, error) + HMSet func(ctx context.Context, key string, hash map[string]interface{}) (bool, error) + HSet func(ctx context.Context, key string, field string, value interface{}) (overwrite bool, err error) + HSetNX func(ctx context.Context, key string, field string, value interface{}) (overwrite bool, err error) + Incr func(ctx context.Context, key string) (int64, error) + IncrBy func(ctx context.Context, key string, increment int64) (int64, error) + LIndex func(ctx context.Context, key string, idx int64) (string, error) + LLen func(ctx context.Context, key string) (int64, error) + LPop func(ctx context.Context, key string) (string, error) + LPush func(ctx context.Context, key string, values ...interface{}) (int64, error) + LRange func(ctx context.Context, key string, start, stop int64) ([]string, error) + LRem func(ctx context.Context, key string, count int64, value interface{}) (int64, error) + LTrim func(ctx context.Context, key string, start, stop int64) (string, error) + MGet func(ctx context.Context, keys ...string) ([]*string, error) + MSet func(ctx context.Context, kvs map[string]interface{}) error + RPop func(ctx context.Context, key string) (string, error) + RPush func(ctx context.Context, key string, values ...interface{}) (int64, error) + SAdd func(ctx context.Context, key string, member ...interface{}) (int64, error) + SCard func(ctx context.Context, key string) (int64, error) + SIsMember func(ctx context.Context, key string, member interface{}) (bool, error) + SMembers func(ctx context.Context, key string) ([]string, error) + SPop func(ctx context.Context, key string) (string, error) + SRandMember func(ctx context.Context, key string) (string, error) + SRandMemberN func(ctx context.Context, key string, count int64) ([]string, error) + SRem func(ctx context.Context, key string, member ...interface{}) (int64, error) + Set func(ctx context.Context, key string, value interface{}) error + SetEx func(ctx context.Context, key string, value interface{}, expire time.Duration) error + SetNx func(ctx context.Context, key string, value interface{}) (bool, error) + SetNxExpire func(ctx context.Context, key string, value interface{}, expiration time.Duration) (bool, error) + TTL func(ctx context.Context, key string) (time.Duration, error) + ZAdd func(ctx context.Context, key string, members ...Z) (int64, error) + ZCard func(ctx context.Context, key string) (int64, error) + ZCount func(ctx context.Context, key string, start, stop int64) (int64, error) + ZRange func(ctx context.Context, key string, start, stop int64) ([]string, error) + ZRangeByScore func(ctx context.Context, key string, start, stop int64) ([]string, error) + ZRangeByScoreByOffset func(ctx context.Context, key string, start, stop, offset, count int64) ([]string, error) + ZRangeByScoreWithScores func(ctx context.Context, key string, start, stop int64) ([]Z, error) + ZRangeByScoreWithScoresByOffset func(ctx context.Context, key string, start, stop, offset, count int64) ([]Z, error) + ZRangeWithScores func(ctx context.Context, key string, start, stop int64) ([]Z, error) + ZRem func(ctx context.Context, key string, members ...interface{}) (int64, error) + ZRemRangeByRank func(ctx context.Context, key string, start, stop int64) (int64, error) + ZRevRange func(ctx context.Context, key string, start, stop int64) ([]string, error) + ZRevRangeByScore func(ctx context.Context, key string, start, stop int64) ([]string, error) + ZRevRangeByScoreByOffset func(ctx context.Context, key string, start, stop, offset, count int64) ([]string, error) + ZRevRangeByScoreWithScores func(ctx context.Context, key string, start, stop int64) ([]gredis.Z, error) + ZRevRangeByScoreWithScoresByOffset func(ctx context.Context, key string, start, stop, offset, count int64) ([]gredis.Z, error) + ZRevRangeWithScores func(ctx context.Context, key string, start, stop int64) ([]Z, error) + ZRevRank func(ctx context.Context, key string, member string) (int64, error) + ZScore func(ctx context.Context, key string, member string) (float64, error) + func New(conf config.Redis) Redis + type Z gredis.Z v0.1.0-beta Jul 14, 2021