LazyDictionaryCache<TKey, TValue>
An IDictionary<T, U> implementation backed by a TypedLazyMemoryCache<T, U>.
Returns the count of items currently stored in the dictionary.
Returns whether modification of the dictionary is restricted.
Gets or sets a value associated with the key. If an entry doesn't already exist for the key, an entry will be created with a new value.
Returns the keys of the entries currently stored in the dictionary.
Returns the values of the entries currently stored in the dictionary.
public LazyDictionaryCache(CachingOptions options, Func<TKey, string> keyFormatter, Func<TKey, CancellationToken, TValue> valueFactory)
Creates an IDictionary<T, U> implementation backed by a TypedLazyMemoryCache<T, U>.
Adds an entry to the dictionary.
Removes all entries in the dictionary.
Returns whether the cache currently contains an entry with the given key.
Creates an enumerator over the Key Value pairs stored in the cache.
Removes an entry from the dictionary with a given key.
Attempts to retrieve a value from the cache for a given key. If the value doesn't exist, it will not be created.