Class TimedDictionaryCache<TKey, TValue>
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public class TimedDictionaryCache<TKey, TValue>
Type Parameters
TKeyTValue
- Inheritance
-
TimedDictionaryCache<TKey, TValue>
- Inherited Members
Constructors
TimedDictionaryCache(long)
public TimedDictionaryCache(long validMilliseconds)
Parameters
validMillisecondslong
TimedDictionaryCache(TimeSpan)
public TimedDictionaryCache(TimeSpan validTimeSpan)
Parameters
validTimeSpanTimeSpan
Properties
this[TKey]
public TValue this[TKey key] { get; set; }
Parameters
keyTKey
Property Value
- TValue
Methods
AsReadOnlyDictionary()
public MBReadOnlyDictionary<TKey, TValue> AsReadOnlyDictionary()
Returns
- MBReadOnlyDictionary<TKey, TValue>
Clear()
public void Clear()
ContainsKey(TKey)
public bool ContainsKey(TKey key)
Parameters
keyTKey
Returns
PruneExpiredItems()
public void PruneExpiredItems()
Remove(TKey)
public bool Remove(TKey key)
Parameters
keyTKey
Returns
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyvalueTValue
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).