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.
The cache holds map.write() during eviction I/O, so cross-cache flush dependencies
(e.g. โflush cache B before evicting from cache Aโ) must be handled externally (see e.g.
qcow2โs MetadataCaches).
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.