Crate cache

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§

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

Structs§

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

Traits§

  • A cacheable object.
  • A cacheable object whose generator needs to store state.
  • A function that can be used to generate a value based on a key in a background thread.
  • A function that can be used to generate a result based on a key in a background thread.
  • A stateful function that can be used to generate a result based on a key in a background thread.
  • A stateful function that can be used to generate a value based on a key in a background thread.
  • A function that can be used to generate a value in a background thread.
  • A function for mapping a cached value to another value.