Updated memory cache fields.

This commit is contained in:
2025-02-26 19:10:51 -05:00
parent dfdf514fe2
commit 6835431d1e
2 changed files with 7 additions and 3 deletions

View File

@@ -6,9 +6,9 @@ public abstract class MemoryCache<TKey, TValue> : Cache<TKey, TValue> where TKey
{
private readonly IMemoryCache _memoryCache;
protected virtual long? SizeLimit => 2000000000;
protected virtual double CompactionPercentage => 0.2;
protected virtual TimeSpan SlidingExpiration => TimeSpan.FromSeconds(600);
protected abstract long? SizeLimit { get; }
protected abstract double CompactionPercentage { get; }
protected abstract TimeSpan SlidingExpiration { get; }
public MemoryCache()
{