Skip to main content

Module cache_aside

Module cache_aside 

Source
Expand description

Cache-aside with read-through (feature cache-aside).

CacheAside wires a Cache to a data source: on a miss it invokes a user-provided async fetcher, stores the result (with an optional TTL), and returns it. This is the standard cache-aside pattern — reads bypass a cold cache by falling back to the source of truth.

Structs§

CacheAside
A generic read-through cache-aside helper.