Caching

cat-caching

Caching refers to storing the results of previous computations, in order to reuse the results.

In-Memory Caches

Hybrid Caches

foyer is a hybrid cache for Rust.

Distributed Caches

Consider redis. Refer to the NoSQL and Key Value Stores chapters.

Cache Invalidation

Cache invalidation is often application-specific, but crates like notify can help with file-based invalidation. Refer to the following chapters:

  • File Watching.
  • Watching for Changes.

Web Page Caching

See:

  • Web Programming.
  • Web Programming HTTP Server.

Database Query Caching

Refer to:

  • Database.
  • Database Implementations.

Serialization and Deserialization Prior to Caching

Refer to:

  • Serde.
  • Complex Encoding.
  • Encoding.