Skip to main content

Crate common_cache

Crate common_cache 

Source
Expand description

Shared memory cache primitives with native asynchronous load deduplication.

Modules§

cache 🔒
metrics
page
Fixed-size byte page layout for immutable cached content.
paged
Immutable byte pages backed by native cache loading and direct range reads.

Structs§

Cache
A weighted memory cache with backend-provided asynchronous load deduplication. Values should be inexpensive to clone, such as Arc<T> or Bytes. Capacity is maintained asynchronously; insertion does not guarantee retention.

Enums§

RemovalCause
Reason for releasing an entry from the cache.