ConcurrentCache<TKey, TValue>
public class ConcurrentCache<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyCollection<KeyValuePair<TKey, TValue>>
Represents concurrent cache.
Gets the capacity of this cache.
Gets the number of cache entries.
Gets or sets a handler that can be used to capture evicted cache items.
Gets or sets a value indicating that Eviction callback must be executed asynchronously.
Gets or sets cache entry.
public ConcurrentCache(int capacity, int concurrencyLevel, CacheEvictionPolicy evictionPolicy, IEqualityComparer<TKey> keyComparer = null)
Initializes a new empty cache.
public ConcurrentCache(int capacity, CacheEvictionPolicy evictionPolicy, IEqualityComparer<TKey> keyComparer = null)
Initializes a new empty cache.
Adds or modifies the cache entry as an atomic operation.
Removes all items from the cache.
Gets enumerator over all key/value pairs.
Gets or adds the cache entry as an atomic operation.
Gets a sorted set of cache entries.
Adds a new cache entry if the cache is not full.
Attempts to get existing cache entry.
Attempts to remove the cache entry.
Attempts to remove the cache entry.
Updates the cache entry associated with the specified key.