Wraps the Dictionary<TKey, TValue> class to present a time-aware data structure that prunes stale entries. This class is lightweight when idle, no events will be run periodically. Pruning of expired cache items is only done on explicit or implicit request.
◆ TimedDictionaryCache() [1/2]
| TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.TimedDictionaryCache |
( |
long | validMilliseconds | ) |
|
◆ TimedDictionaryCache() [2/2]
| TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.TimedDictionaryCache |
( |
TimeSpan | validTimeSpan | ) |
|
◆ PruneExpiredItems()
| void TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.PruneExpiredItems |
( |
| ) |
|
◆ Clear()
| void TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.Clear |
( |
| ) |
|
◆ ContainsKey()
| bool TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.ContainsKey |
( |
TKey | key | ) |
|
◆ Remove()
| bool TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.Remove |
( |
TKey | key | ) |
|
◆ TryGetValue()
| bool TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.TryGetValue |
( |
TKey | key, |
|
|
out TValue | value ) |
◆ AsReadOnlyDictionary()
| MBReadOnlyDictionary< TKey, TValue > TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.AsReadOnlyDictionary |
( |
| ) |
|
◆ this[TKey key]
| TValue TaleWorlds.Library.TimedDictionaryCache< TKey, TValue >.this[TKey key] |
|
getset |