redis

package
v0.0.0-...-0c1ed19 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisClient *redis.Client
	Ctx         = context.Background()
)

Functions

func CloseRedis

func CloseRedis()

CloseRedis closes the Redis client connection

func GetValue

func GetValue(key string) (string, error)

GetValue retrieves a value by key from Redis

func InitRedis

func InitRedis(address, password string, db int)

InitRedis initializes the Redis client

func SetValue

func SetValue(key string, value interface{}) error

SetValue sets a key-value pair in Redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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