Class TimedDictionaryCache<TKey, TValue>
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public class TimedDictionaryCache<TKey, TValue>
Type Parameters
TKey
TValue
- Inheritance
-
TimedDictionaryCache<TKey, TValue>
- Inherited Members
Constructors
TimedDictionaryCache(long)
public TimedDictionaryCache(long validMilliseconds)
Parameters
validMilliseconds
long
TimedDictionaryCache(TimeSpan)
public TimedDictionaryCache(TimeSpan validTimeSpan)
Parameters
validTimeSpan
TimeSpan
Properties
this[TKey]
public TValue this[TKey key] { get; set; }
Parameters
key
TKey
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
key
TKey
Returns
PruneExpiredItems()
public void PruneExpiredItems()
Remove(TKey)
public bool Remove(TKey key)
Parameters
key
TKey
Returns
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
key
TKeyvalue
TValue
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).