F2ZG4ZYOQLGYMBCB2EAZAI7XTYZGJ2ZIJW4IJ6JG6JYGWOVXD3LQC
AETYXHGO4N5PURYZT7Z5UZDGLAN7CD6JESLFAASLYFEXZKWSFE7AC
N3X5YP7PV2XVQKRRWSRCGJG34HZPLV4BGBLZGJG55KGIB7ORJ77QC
use std::collections::HashMap;
/// Size of the LRU cache.const CACHE_SIZE: usize = 1024;
/// Size of the LRU cache.
const CACHE_SIZE: usize = 1024;
loaded: Mutex<lru_cache::LruCache<u64, Box<[u8; crate::tag::BLOCK_SIZE]>>>,
loaded: Mutex<HashMap<u64, Box<[u8; crate::tag::BLOCK_SIZE]>>>,
loaded: Mutex::new(lru_cache::LruCache::new(CACHE_SIZE)),
loaded: Mutex::new(HashMap::new()),
} /// Clear the cache, freeing memory. pub fn clear(&mut self) { // This function is only safe because it takes a mutable // borrow, and all references returned by the methods on // `TagTxn` return immutable borrows of `self`. self.loaded.lock().unwrap().clear()
}
/// Clear the cache, freeing memory.
pub fn clear(&mut self) {
// This function is only safe because it takes a mutable
// borrow, and all references returned by the methods on
// `TagTxn` return immutable borrows of `self`.
self.loaded.lock().unwrap().clear()