cache

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCleanupInterval = 5 * time.Minute
)

Variables

View Source
var (
	ErrClosed         error = &cacheError{msg: "cache closed"}
	ErrNotFound       error = &cacheError{msg: "cache not found"}
	ErrInvalidElement error = &cacheError{msg: "invalid cache element"}
	ErrExpired        error = &cacheError{msg: "cache expired"}
)

Functions

func NewError

func NewError(msg string) error

func NewErrorWith

func NewErrorWith(msg string, err error) error

func NewMemoryCache

func NewMemoryCache(cfg *storagev1.Memory) storageiface.Cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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