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. |
Click to show internal directories.
Click to hide internal directories.