Exemple #1
0
 public override Task <long> GetAsync(string key, Func <ValueTask <long> > func) =>
 _helper.GetOrSetAsync(key, FuncHelper.WrapAsync <string, long>(func), TimeSpan.FromSeconds(DefaultTtl), default).AsTask();