Module sync

Source
Expand description

Provides thread-safe, concurrent cache implementations.

Structs§

Cache
A thread-safe concurrent synchronous in-memory cache.
CacheBuilder
Builds a Cache or SegmentedCache with various configuration knobs.
Iter
Iterator visiting all key-value pairs in a cache in arbitrary order.
OwnedKeyEntrySelector
Provides advanced methods to select or insert an entry of the cache.
RefKeyEntrySelector
Provides advanced methods to select or insert an entry of the cache.
SegmentedCache
A thread-safe concurrent in-memory cache, with multiple internal segments.

Traits§

ConcurrentCacheExt
Provides extra methods that will be useful for testing.

Type Aliases§

PredicateId
The type of the unique ID to identify a predicate used by Cache::invalidate_entries_if method.