Method GetOrAdd
GetOrAdd<T, TKey>(ISourceCache<T, TKey>, TKey, Func<TKey, T>)
Declaration
public static T GetOrAdd<T, TKey>(this ISourceCache<T, TKey> instance, TKey key, Func<TKey, T> factoryFunc)
Parameters
Type | Name | Description |
---|---|---|
ISourceCache<T, TKey> | instance | |
TKey | key | |
Func<TKey, T> | factoryFunc |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | |
TKey |