cache

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToSetCache = _eg.CreateError(0, "failed to set cache")
)
View Source
var NoExpiration = time.Duration(-1)

Functions

This section is empty.

Types

type CacheKey

type CacheKey string

type ICache

type ICache interface {
	scene.Repository
	Get(key CacheKey) (string, bool)
	Set(key CacheKey, value string, expiration time.Duration) error
	Delete(key CacheKey) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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