Module cache

Source
Expand description

Caching utilities

Structs§

Block
Cached block
CacheStats
Cache statistics
IndexCache
Simple cache implemented with a Vec<RwLock<Block>>, with the key determined by the position modulo the size.
LRUCache
Least Recently Used (LRU) cache, with one slot for every possible block, each protected by a RwLock.

Enums§

CacheError

Traits§

DataBlockCache
Block cache trait