redis

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Nil = redis.Nil

Variables

Functions

func GetRedisClient

func GetRedisClient() *redis.Client

func InitRedisClient

func InitRedisClient() (err error)

InitRedisClient This function is called after init()

func NewScript

func NewScript(script string) *redis.Script

func ParseRedisOption

func ParseRedisOption() *redis.Options

func RedisDecrease

func RedisDecrease(key string, value int64) error

func RedisDel

func RedisDel(key string) error

func RedisExists

func RedisExists(key string) (bool, error)

func RedisGet

func RedisGet(key string) (string, error)

func RedisSAdd

func RedisSAdd(key string, members ...interface{}) error

func RedisSIsMember

func RedisSIsMember(key string, member interface{}) (bool, error)

func RedisSet

func RedisSet(key string, value string, expiration time.Duration) error

func ScriptRunCtx

func ScriptRunCtx(ctx context.Context, script *redis.Script, keys []string, args ...interface{}) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL