cache

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 0 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 {
	// Save image data to cache
	Save(hash string, data []byte) error

	// get image data from cache (possibly invalidating and deleting stale data)
	Get(hash string, maxAge int) ([]byte, error)

	// run periodic cleanup service (this can run longer)
	RunCleanUp(maxAge int)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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