cache

package
v0.0.0-...-8460221 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: BSD-3-Clause Imports: 1 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

	// SetValue sets the value for the given key in the cache.
	SetValue(ctx context.Context, key string, value string) error

	// GetValue returns the value for the corresponding key from the cache.
	GetValue(ctx context.Context, key string) (string, error)
}

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.
Package redis implements the redis related operations to support Skia perf, specifically for the query UI.
Package redis implements the redis related operations to support Skia perf, specifically for the query UI.

Jump to

Keyboard shortcuts

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