Crate remotecache

Source
Expand description

A general purpose cache with possibly multiple remote servers for storing and retrieving data.

The cache includes both type-mapped and namespaced APIs. Caching can be done in-memory or persistently via a cache server that manages a filesystem cache. The cache also supports caching across several cache servers.

Modules§

error
Cache error types.
mem
In-memory caching utilities.
multi
A cache with multiple providers.
persistent
Utilities for persistent caching.

Structs§

CacheHandle
A handle to a cache entry that might still be generating.
NAMESPACE_REGEX
A regex for matching valid namespaces.
Namespace
A namespace used for addressing a set of cached items.

Traits§

Cacheable
A cacheable object.
CacheableWithState
A cacheable object whose generator needs to store state.
GenerateFn
A function that can be used to generate a value based on a key in a background thread.
GenerateResultFn
A function that can be used to generate a result based on a key in a background thread.
GenerateResultWithStateFn
A stateful function that can be used to generate a result based on a key in a background thread.
GenerateWithStateFn
A stateful function that can be used to generate a value based on a key in a background thread.
RawGenerateFn
A function that can be used to generate a value in a background thread.