Table of Contents

Class DashMap<TKey, TValue>

Namespace
Core.Collections
Assembly
Core.dll
public class DashMap<TKey, TValue> where TKey : IEquatable<TKey>

Type Parameters

TKey
TValue
Inheritance
object
DashMap<TKey, TValue>
Extension Methods

Constructors

DashMap(uint, bool)

public DashMap(uint shardsCount, bool globalQueriesCanHappenConcurrentlyToReadWriteOperations)

Parameters

shardsCount uint
globalQueriesCanHappenConcurrentlyToReadWriteOperations bool

Properties

Count

public int Count { get; }

Property Value

int

Methods

Add(KeyValuePair<TKey, TValue>)

public void Add(KeyValuePair<TKey, TValue> item)

Parameters

item KeyValuePair<TKey, TValue>

Add(TKey, TValue)

public void Add(TKey key, TValue value)

Parameters

key TKey
value TValue

Clear()

public void Clear()

CreateOptimizedForThreads(uint, bool, uint)

public static DashMap<TKey, TValue> CreateOptimizedForThreads(uint threads, bool globalQueriesCanHappenConcurrentlyToReadWriteOperations, uint overShardingFactor = 4)

Parameters

threads uint
globalQueriesCanHappenConcurrentlyToReadWriteOperations bool
overShardingFactor uint

Returns

DashMap<TKey, TValue>

Dispose()

public void Dispose()

GetAllValues(ICollection<TValue>)

public void GetAllValues(ICollection<TValue> values)

Parameters

values ICollection<TValue>

Remove(TKey)

public bool Remove(TKey key)

Parameters

key TKey

Returns

bool

TryAddValue(TKey, TValue)

public bool TryAddValue(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

bool

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey
value TValue

Returns

bool