cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Store(key string, value any, expireSecond int) error
	Load(key string, dest any) (isExist bool, err error)
	Delete(key string) error
	RawClient() *redis.Client
}

func New

func New(config Config) Cache

type Config

type Config struct {
	RedisUri string `env:"REDIS_URI"`
}

Jump to

Keyboard shortcuts

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