Skip to content

Commit

Permalink
fix memory cache values never expiring (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterjun3 authored Feb 14, 2024
1 parent cc30cfa commit 48f18d5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TASVideos.Core/Services/Cache/MemoryCacheService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public void Remove(string key)

public void Set(string key, object? data, int? cacheTime)
{
using var entry = _cache.CreateEntry(key);
entry.Value = data;
_cache.Set(key, data, new TimeSpan(0, 0, cacheTime ?? _settings.CacheSettings.CacheDurationInSeconds));
}
}

0 comments on commit 48f18d5

Please sign in to comment.