Table of Contents

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

bool

PruneExpiredItems()

public void PruneExpiredItems()

Remove(TKey)

public bool Remove(TKey key)

Parameters

key TKey

Returns

bool

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey
value TValue

Returns

bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).