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§
- Cache
Aside - A generic read-through cache-aside helper.