Class ExpiringCache<TKey, TValue>
- Namespace
- Root
- Assembly
- Game.Core.dll
public class ExpiringCache<TKey, TValue>
Type Parameters
TKeyTValue
- Inheritance
-
objectExpiringCache<TKey, TValue>
- Extension Methods
Constructors
ExpiringCache(ClearHandlerDelegate)
public ExpiringCache(ExpiringCache<TKey, TValue>.ClearHandlerDelegate clearHandler = null)
Parameters
clearHandlerExpiringCache<TKey, TValue>.ClearHandlerDelegate
Properties
Count
public int Count { get; }
Property Value
- int
Methods
Dispose()
public void Dispose()
GarbageCollect()
public void GarbageCollect()
Store(TKey, in TValue)
public void Store(TKey key, in TValue value)
Parameters
keyTKeyvalueTValue
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyvalueTValue
Returns
- bool