cache

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCacheMiss is thrown when there's a cache miss
	ErrCacheMiss = errors.New("cache miss")
)

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(key, value string, expiration time.Duration) error
	Get(key string) (string, error)
}

Cache is the interface for a cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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