Versions in this module Expand all Collapse all v1 v1.1.0 Nov 12, 2023 Changes in this version + func HSetAny(ctx context.Context, key string, field string, value interface{}) (int64, error) + func HSetNX(ctx context.Context, key, field string, value interface{}) (int64, error) v1.0.0 Oct 17, 2023 Changes in this version + var Client *redis.Client + var UniversalClient redis.UniversalClient + func Del(ctx context.Context, keys ...string) (int64, error) + func Get(ctx context.Context, key string) (*gvar.Var, error) + func GetInt(ctx context.Context, key string) (int, error) + func HGet(ctx context.Context, key, field string) (*gvar.Var, error) + func HGetStr(ctx context.Context, key, field string) (string, error) + func HSet(ctx context.Context, key string, fields map[string]interface{}) (int64, error) + func HSetStr(ctx context.Context, key string, field, value string) (int64, error) + func Incr(ctx context.Context, key string) (int64, error) + func LLen(ctx context.Context, key string) (int64, error) + func LPush(ctx context.Context, key string, values ...interface{}) (int64, error) + func LRange(ctx context.Context, key string, start, stop int64) (gvar.Vars, error) + func LTrim(ctx context.Context, key string, start, stop int64) error + func Pipeline(ctx context.Context) redis.Pipeliner + func Pipelined(ctx context.Context, pipe pipeliner) ([]redis.Cmder, error) + func Publish(ctx context.Context, channel string, message interface{}) (int64, error) + func RPush(ctx context.Context, key string, values ...interface{}) (int64, error) + func Set(ctx context.Context, key string, value interface{}, option ...gredis.SetOption) (*gvar.Var, error) + func SetEX(ctx context.Context, key string, value interface{}, ttlInSeconds int64) error + func SetNX(ctx context.Context, key string, value interface{}) (bool, error)