cache

package
v0.0.0-...-0b10b3f Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists error = errors.New("key already exists")
	ErrNotExists     error = errors.New("key does not exist")
)

Functions

func NewMemoryCache

func NewMemoryCache() *memoryCache

func NewRedisCache

func NewRedisCache(rc *redis.Client, ttl time.Duration) *redisCache

Types

This section is empty.

Jump to

Keyboard shortcuts

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