Expand description
LruCache
implementation port from github.com/facebook/rocksdb. The class LruCache
is
thread-safe, because every operation on cache will be protected by a spin lock.
Structsยง
- An entry is a variable length heap-allocated structure. Entries are referenced by cache and/or by any external entity. The cache keeps all its entries in a hash table. Some elements are also stored on LRU list.
Enumsยง
lookup_with_request_dedup.await
can directly returnResult<CacheableEntry<K, T>, E>
, but if we do not want to wait when cache hit does not happen, we can directly calllookup_with_request_dedup
which will return aLookupResponse
which containsReceiver<CacheableEntry<K, T>>
orJoinHandle<Result<CacheableEntry<K, T>, E>>
when cache hit does not happen.
Constantsยง
- IN_
CACHE ๐ - IN_
HIGH_ ๐PRI_ POOL - IN_LRU ๐
- IS_
HIGH_ ๐PRI - REVERSE_
IN_ ๐CACHE - REVERSE_
IN_ ๐LRU
Traitsยง
Type Aliasesยง
- Request
Queue ๐