cache

package
v0.0.0-...-04e8982 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseRedis

func CloseRedis()

func Get

func Get[T any](c *redis.Client, key string) (T, error)

func GetRedis

func GetRedis() *redis.Client

func InitRedis

func InitRedis(cfg *config.Config) error

func Set

func Set[T any](c *redis.Client, key string, value T, duration time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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