We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028ca4c commit 8f30a15Copy full SHA for 8f30a15
src/LinkDotNet.Blog.Infrastructure/Persistence/CachedRepository.cs
@@ -22,7 +22,7 @@ public async ValueTask<T> GetByIdAsync(string id)
22
{
23
return await memoryCache.GetOrCreateAsync(id, async entry =>
24
25
- entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromDays(7);
+ entry.SlidingExpiration = TimeSpan.FromDays(7);
26
return await repository.GetByIdAsync(id);
27
});
28
}
0 commit comments