Caching

10 projects

For in-memory caching in applications, moka is the common choice. It is a concurrent cache inspired by Java's Caffeine, with size limits, time-to-live and time-to-idle expiry, and both sync and async APIs. stretto is a port of the Go Ristretto cache. cached takes a different approach: a macro memoizes a function's results with configurable stores and expiry, which is convenient for expensive pure functions.

For persistent caches, cacache stores data on disk by content hash with integrity checks. http-cache adds HTTP caching semantics to reqwest and other clients, hitbox provides caching for async services, and rust-memcache is a memcached client. Pick based on where the cache lives: moka or cached inside one process, cacache for data that should survive restarts, and an external store such as Redis when several instances share entries.

Two entries solve different problems. sccache, from Mozilla, caches compiler output locally or in cloud storage to speed up Rust and C/C++ builds, especially in CI, and kache is a newer alternative. salsa is a framework for incremental computation that recomputes only what changed; rust-analyzer is built on it, and it suits compilers and language tools.

http-cacheby 06chaynes

A caching middleware that follows HTTP caching rules

http-cache0.21.01.1m/90d updated 1mo ago

106

rust-memcacheby aisk

Memcached client library

memcache0.21.01m/90d updated 1mo ago

153

strettoby al8n

A high performance thread-safe memory-bound cache

stretto0.9.051.9k/90d updated 5mo ago

434

hitboxby hit-box

A declarative cache orchestration framework with HTTP middleware and multi-tier backends

hitbox0.2.41.3k/90d updated 3d ago

148

cachedby jaemk

Simple function caching/memoization

cached4.0.29.7m/90d updated 2d ago

2.1k

kacheby kunobi-ninja

Content-addressed compiler cache for Rust and C/C++ (website)

kache1.2.24.9k/90d updated today

1.2k

mokaby moka-rs

A high performance concurrent caching library inspired by the Caffeine library for Java

moka0.12.1642.5m/90d updated 2mo ago

2.7k

sccacheby mozilla

Shared Compilation Cache, great compilation

sccache0.18.0138k/90d updated 1d ago

7.8k

salsaby salsa-rs

A generic framework for on-demand, incrementalized computation with memoized queries, inspired by rustc's query system.

salsa0.28.52.8m/90d updated 2d ago

3k

cacache-rsby zkat

A high-performance, concurrent, content-addressable disk cache, optimized for async APIs

cacache13.1.01m/90d updated 4mo ago

720

Built on the open rust-unofficial/awesome-rust list by its contributors, licensed CC0 1.0. Crate Atlas is an independent project, not affiliated with the list's maintainers.

About Synced Oct 21, 2026

© 2026 Crate Atlas

Esc

Type to search every entry. ↑↓ to move, Enter to open.