Optimized cache for read-heavy workloads.
Uses optimistic reading with a mutex for writes only. This allows concurrent reads without locking.
Note: Read methods are NOT suspend and return snapshots. Write methods ARE suspend and lock the cache.
Clear all entries from the cache.
Check if a key exists in the cache.
Get a value from the cache.
Get a value or compute and cache it if missing.
Check if cache is empty
Get all keys in the cache.
Store a value in the cache.
Remove a value from the cache.
Get the number of cached entries.
Get all values in the cache.