Skip to content

Commit

Permalink
Remove async-await pair (alastairtree#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup committed Sep 27, 2020
1 parent d79f4b9 commit 4fc9fef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LazyCache/CachingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ public virtual void Remove(string key)

public virtual ICacheProvider CacheProvider => cacheProvider.Value;

public virtual async Task<T> GetOrAddAsync<T>(string key, Func<ICacheEntry, Task<T>> addItemFactory)
public virtual Task<T> GetOrAddAsync<T>(string key, Func<ICacheEntry, Task<T>> addItemFactory)
{
return await GetOrAddAsync(key, addItemFactory, null);
return GetOrAddAsync(key, addItemFactory, null);
}

public virtual async Task<T> GetOrAddAsync<T>(string key, Func<ICacheEntry, Task<T>> addItemFactory,
MemoryCacheEntryOptions policy)
{
Expand Down

0 comments on commit 4fc9fef

Please sign in to comment.