redis

package
v0.0.0-...-6af0856 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REDIS_CTX_KEY utils.Key = "REDIS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func GetRedisClientFromContext

func GetRedisClientFromContext(ctx context.Context) RedisClient

func NewRedisClient

func NewRedisClient(redisUrl string) RedisClient

func (*RedisClient) Get

func (rc *RedisClient) Get(key string) (string, error)

func (*RedisClient) Set

func (rc *RedisClient) Set(key string, value string, expiration time.Duration) error

Jump to

Keyboard shortcuts

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