<PackageReference Include="System.ServiceModel.Primitives" Version="6.0.0-rc.23205.4" />

System.ServiceModel.Security.TimeBoundedCache

namespace System.ServiceModel.Security { internal class TimeBoundedCache { public int Count { get; } protected int Capacity { get; } protected Hashtable Entries { get; } protected ReaderWriterLockSlim CacheLock { get; } protected TimeBoundedCache(int lowWaterMark, int maxCacheItems, IEqualityComparer keyComparer, PurgingMode purgingMode, TimeSpan purgeInterval, bool doRemoveNotification); protected bool TryAddItem(object key, object item, DateTime expirationTime, bool replaceExistingEntry); protected bool TryAddItem(object key, IExpirableItem item, bool replaceExistingEntry); protected bool TryReplaceItem(object key, object item, DateTime expirationTime); protected void ClearItems(); protected object GetItem(object key); protected virtual ArrayList OnQuotaReached(Hashtable cacheTable); protected virtual void OnRemove(object item); protected bool TryRemoveItem(object key); protected object ExtractItem(IExpirableItem val); } }