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ยง
- Async
LruCache ๐ - Least-recently-used cache with async access.
- Async
LruCache ๐Entry - Cache entry structure, wrapping the cached object.
- Async
LruCache ๐Inner - Least-recently-used cache with async access.
Traitsยง
- Async
LruCache ๐Backend - Provides loading and flushing for cache entries.
- Flushable
Cache ๐ - Internal trait used to implement inter-cache flush dependencies.