Documentation
¶
Index ¶
- Constants
- Variables
- func GetRedisClient() *redis.Client
- func InitRedisClient() (err error)
- func NewScript(script string) *redis.Script
- func ParseRedisOption() *redis.Options
- func RedisDecrease(key string, value int64) error
- func RedisDel(key string) error
- func RedisExists(key string) (bool, error)
- func RedisGet(key string) (string, error)
- func RedisSAdd(key string, members ...interface{}) error
- func RedisSIsMember(key string, member interface{}) (bool, error)
- func RedisSet(key string, value string, expiration time.Duration) error
- func ScriptRunCtx(ctx context.Context, script *redis.Script, keys []string, args ...interface{}) (interface{}, error)
Constants ¶
View Source
const Nil = redis.Nil
Variables ¶
View Source
var RDB *redis.Client
Functions ¶
func GetRedisClient ¶
func InitRedisClient ¶
func InitRedisClient() (err error)
InitRedisClient This function is called after init()
func ParseRedisOption ¶
func RedisDecrease ¶
func RedisExists ¶
func RedisSIsMember ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.