Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2017 Changes in this version type ConcurrentHashMap + func (m *ConcurrentHashMap) AddIfPresentWithFun(key uint, newVal interface{}, fn fun) + func (m *ConcurrentHashMap) Erase() v1.0.0 Aug 10, 2017 Changes in this version + type ConcurrentHashMap struct + HashMap ConcurrentMap + Shards int + func New(shards int) *ConcurrentHashMap + func (m *ConcurrentHashMap) AddIfPresent(key uint, value interface{}) bool + func (m *ConcurrentHashMap) Count() int + func (m *ConcurrentHashMap) Get(key uint) (interface{}, bool) + func (m *ConcurrentHashMap) GetShard(key uint) *ConcurrentMapShared + func (m *ConcurrentHashMap) Has(key uint) bool + func (m *ConcurrentHashMap) IsEmpty() bool + func (m *ConcurrentHashMap) Items() map[uint]interface{} + func (m *ConcurrentHashMap) Iter() <-chan Tuple + func (m *ConcurrentHashMap) IterBuffered() <-chan Tuple + func (m *ConcurrentHashMap) IterCb(fn IterCb) + func (m *ConcurrentHashMap) Keys() []uint + func (m *ConcurrentHashMap) MSet(data map[uint]interface{}) + func (m *ConcurrentHashMap) MarshalJSON() ([]byte, error) + func (m *ConcurrentHashMap) Pop(key uint) (v interface{}, exists bool) + func (m *ConcurrentHashMap) Remove(key uint) + func (m *ConcurrentHashMap) Set(key uint, value interface{}) + func (m *ConcurrentHashMap) SetIfAbsent(key uint, value interface{}) bool + func (m *ConcurrentHashMap) SetIfPresent(key uint, newValue, oldValue interface{}) bool + func (m *ConcurrentHashMap) Upsert(key uint, value interface{}, cb UpsertCb) (res interface{}) + type ConcurrentMap []*ConcurrentMapShared + type ConcurrentMapShared struct + type IterCb func(key uint, v interface{}) + type Tuple struct + Key uint + Val interface{} + type UpsertCb func(exist bool, valueInMap interface{}, newValue interface{}) interface