コード例 #1
0
 public static Task <TValue> GetAsync <TKey, TValue>(this ITypeCache <TKey, TValue> cache, TKey key, Func <Task <TValue> > factory)
 {
     return(cache.GetAsync(key, k => factory()));
 }