Class DashMap<TKey, TValue>
- Namespace
- Core.Collections
- Assembly
- Core.dll
public class DashMap<TKey, TValue> where TKey : IEquatable<TKey>
Type Parameters
TKeyTValue
- Inheritance
-
objectDashMap<TKey, TValue>
- Extension Methods
Constructors
DashMap(uint, bool)
public DashMap(uint shardsCount, bool globalQueriesCanHappenConcurrentlyToReadWriteOperations)
Parameters
shardsCountuintglobalQueriesCanHappenConcurrentlyToReadWriteOperationsbool
Properties
Count
public int Count { get; }
Property Value
- int
Methods
Add(KeyValuePair<TKey, TValue>)
public void Add(KeyValuePair<TKey, TValue> item)
Parameters
itemKeyValuePair<TKey, TValue>
Add(TKey, TValue)
public void Add(TKey key, TValue value)
Parameters
keyTKeyvalueTValue
Clear()
public void Clear()
CreateOptimizedForThreads(uint, bool, uint)
public static DashMap<TKey, TValue> CreateOptimizedForThreads(uint threads, bool globalQueriesCanHappenConcurrentlyToReadWriteOperations, uint overShardingFactor = 4)
Parameters
threadsuintglobalQueriesCanHappenConcurrentlyToReadWriteOperationsbooloverShardingFactoruint
Returns
- DashMap<TKey, TValue>
Dispose()
public void Dispose()
GetAllValues(ICollection<TValue>)
public void GetAllValues(ICollection<TValue> values)
Parameters
valuesICollection<TValue>
Remove(TKey)
public bool Remove(TKey key)
Parameters
keyTKey
Returns
- bool
TryAddValue(TKey, TValue)
public bool TryAddValue(TKey key, TValue value)
Parameters
keyTKeyvalueTValue
Returns
- bool
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyvalueTValue
Returns
- bool