redis

package
v0.0.0-...-8f202a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Client *redis.Client
}

func InitRedis

func InitRedis(redisCfg *config.RedisConfig) *Redis

func (*Redis) GetTTL

func (r *Redis) GetTTL(key string) (int, error)

func (*Redis) GetValue

func (r *Redis) GetValue(key string) (string, error)

func (*Redis) SetValue

func (r *Redis) SetValue(key string, value string, ttl *time.Duration) error

Jump to

Keyboard shortcuts

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