cache

package
v0.0.0-...-746e214 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheMiss = errors.New("cache miss")

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(string) (string, error)
	Set(string, string) error
	// Del deletes the given keys.
	// It is not expected to return an error if any of the given keys does not exist.
	// To avoid the "New Enemy" problem, Del() must consistently delete the given keys.
	// Otherwise it is possible for users that were just revoked the access to a resource
	// to still gain access with on old cached token.
	Del(...string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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