reduce caching to 1 week

This commit is contained in:
Nicolas Constant 2021-02-03 01:04:32 -05:00
parent 2e8313301b
commit 1d8e622ab5
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ namespace BirdsiteLive.Twitter
// Keep in cache for this time, reset time if accessed.
.SetSlidingExpiration(TimeSpan.FromHours(24))
// Remove from cache after this time, regardless of sliding expiration
.SetAbsoluteExpiration(TimeSpan.FromDays(30));
.SetAbsoluteExpiration(TimeSpan.FromDays(7));
#region Ctor
public CachedTwitterUserService(ITwitterUserService twitterService)