Class TimeoutDictionary<K, V>
Inheritance
TimeoutDictionary<K, V>
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public class TimeoutDictionary<K, V> : IDictionary<K, V>, ICollection<KeyValuePair<K, V>>, IEnumerable<KeyValuePair<K, V>>, IEnumerable, ICacheHandler
Type Parameters
Constructors
Declaration
public TimeoutDictionary(int timeoutSeconds = 600, bool keepAlive = false)
Parameters
Properties
Declaration
public int Count { get; }
Property Value
Declaration
public bool IsReadOnly { get; }
Property Value
Declaration
public V this[K key] { get; set; }
Parameters
Property Value
Declaration
public ICollection<K> Keys { get; }
Property Value
Declaration
public int TimeoutSeconds { get; set; }
Property Value
Implements
Declaration
public ICollection<V> Values { get; }
Property Value
Methods
Declaration
public void Add(KeyValuePair<K, V> item)
Parameters
Declaration
public void Add(K key, V value)
Parameters
Declaration
public bool Contains(KeyValuePair<K, V> item)
Parameters
Returns
Declaration
public bool ContainsKey(K key)
Parameters
Returns
Declaration
public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex)
Parameters
Declaration
public IEnumerator<KeyValuePair<K, V>> GetEnumerator()
Returns
Declaration
public bool Remove(KeyValuePair<K, V> item)
Parameters
Returns
Declaration
public bool Remove(K key)
Parameters
Returns
Declaration
public TimeoutDictionary<K, V> SetName(string name)
Parameters
Returns
Declaration
public bool TryGetValue(K key, out V value)
Parameters
Returns
Extension Methods