cache

package
v0.0.0-...-732b81e Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 6 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 {
	RedisClient *redis.Client
	LoggerSugar *zap.SugaredLogger
}

func NewRedis

func NewRedis(loggerSugar *zap.SugaredLogger) Redis

func (*Redis) Delete

func (r *Redis) Delete(ctx domain.ContextControl, key string) error

func (*Redis) Get

func (r *Redis) Get(ctx domain.ContextControl, key string) (string, error)

func (*Redis) Set

func (r *Redis) Set(ctx domain.ContextControl, key string, payload string, expirationTime time.Duration) error

Jump to

Keyboard shortcuts

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