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

View file

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