Module async_lru_cache

Source
Expand description

Provides a least-recently-used cache with async access.

To operate, this cache is bound to an I/O back-end object that provides the loading and flushing of cache entries.

Also supports inter-cache dependency, e.g. for when the qcow2 L2 table cache needs to be flushed before the refblock cache, because some clusters were freed (so the L2 references need to be cleared before the clusters are deallocated).

Structsยง

AsyncLruCache ๐Ÿ”’
Least-recently-used cache with async access.
AsyncLruCacheEntry ๐Ÿ”’
Cache entry structure, wrapping the cached object.
AsyncLruCacheInner ๐Ÿ”’
Least-recently-used cache with async access.

Traitsยง

AsyncLruCacheBackend ๐Ÿ”’
Provides loading and flushing for cache entries.
FlushableCache ๐Ÿ”’
Internal trait used to implement inter-cache flush dependencies.