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§
- Cache
Handle - 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.
- Cacheable
With State - A cacheable object whose generator needs to store state.
- Generate
Fn - A function that can be used to generate a value based on a key in a background thread.
- Generate
Result Fn - A function that can be used to generate a result based on a key in a background thread.
- Generate
Result With State Fn - A stateful function that can be used to generate a result based on a key in a background thread.
- Generate
With State Fn - A stateful function that can be used to generate a value based on a key in a background thread.
- RawGenerate
Fn - A function that can be used to generate a value in a background thread.