<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

LazyDictionaryCache

public class LazyDictionaryCache

public static LazyDictionaryCache<TKey, TValue> Create<TKey, TValue>(CachingOptions options, Func<TKey, string> keyFormatter, Func<TKey, CancellationToken, TValue> valueFactory)

Creates an IDictionary<T, U> implementation backed by a TypedLazyMemoryCache<T, U>.

public static LazyDictionaryCache<TKey, TValue> Create<TKey, TValue>(CachingOptions options, Func<TKey, CancellationToken, TValue> valueFactory) where TKey : IConvertible

Creates an IDictionary<T, U> implementation backed by a TypedLazyMemoryCache<T, U>.

public static LazyDictionaryCache<TKey, TValue> Create<TKey, TValue>(CachingOptions options, Func<BaseContext, TValue> valueFactory) where TKey : BaseContext

Creates an IDictionary<T, U> implementation backed by a TypedLazyMemoryCache<T, U>.