risingwave_common

Module cache

source
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ยง

Enumsยง

  • lookup_with_request_dedup.await can directly return Result<CacheableEntry<K, T>, E>, but if we do not want to wait when cache hit does not happen, we can directly call lookup_with_request_dedup which will return a LookupResponse which contains Receiver<CacheableEntry<K, T>> or JoinHandle<Result<CacheableEntry<K, T>, E>> when cache hit does not happen.

Constantsยง

Traitsยง

Type Aliasesยง