diff --git a/LazyCache/CachingService.cs b/LazyCache/CachingService.cs index 389ddcd..30b6754 100644 --- a/LazyCache/CachingService.cs +++ b/LazyCache/CachingService.cs @@ -172,10 +172,11 @@ public virtual void Remove(string key) public virtual ICacheProvider CacheProvider => cacheProvider.Value; - public virtual async Task GetOrAddAsync(string key, Func> addItemFactory) + public virtual Task GetOrAddAsync(string key, Func> addItemFactory) { - return await GetOrAddAsync(key, addItemFactory, null); + return GetOrAddAsync(key, addItemFactory, null); } + public virtual async Task GetOrAddAsync(string key, Func> addItemFactory, MemoryCacheEntryOptions policy) {