cache

package
v0.0.0-...-33de393 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package cache defines an interface for an LRU cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// Add adds a value to the cache.
	Add(key string)

	// Exists returns true  if the key is found in the cache.
	Exists(key string) bool
}

Cache in an interface for an LRU cache.

Directories

Path Synopsis
Package local implements cache.Cache with an in-memory cache.
Package local implements cache.Cache with an in-memory cache.
Package memcached implements cache.Cache via memcached.
Package memcached implements cache.Cache via memcached.

Jump to

Keyboard shortcuts

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