RandomAccessCache<TKey, TValue>
Represents concurrent cache optimized for random access.
Represents a session that can be used to read, modify or promote the cache record value.
Represents a session that can be used to read the cache record value.
Gets or sets a callback that can be used to clean up the evicted value.
Gets or sets key comparer.
Initializes a new cache.
Opens a session synchronously that can be used to modify the value associated with the key.
public ValueTask<ReadOrWriteSession<TKey, TValue>> ChangeAsync(TKey key, CancellationToken token = default)
Opens a session that can be used to modify the value associated with the key.
Invalidates the cache record associated with the specified key.
Invalidates the cache record associated with the specified key.
Invalidates the entire cache.
public ValueTask<ReadSession<TKey, TValue>?> TryRemoveAsync(TKey key, CancellationToken token = default)
Tries to invalidate cache record associated with the provided key.