Documentation ¶
Index ¶
- type MutexMap
- func (mm *MutexMap) Get(key interface{}) (interface{}, bool)
- func (mm *MutexMap) Insert(key interface{}, val interface{}) bool
- func (mm *MutexMap) Keys() []interface{}
- func (mm *MutexMap) Len() int
- func (mm *MutexMap) Remove(key interface{})
- func (mm *MutexMap) Set(key interface{}, val interface{})
- func (mm *MutexMap) Values() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexMap ¶
type MutexMap struct {
// contains filtered or unexported fields
}
MutexMap represents a concurrent safe map
func (*MutexMap) Insert ¶
Insert adds the (key, val) tuple if the key does not exist returns true operation succeeded
func (*MutexMap) Keys ¶
func (mm *MutexMap) Keys() []interface{}
Keys returns all stored keys. The order is not guaranteed
func (*MutexMap) Remove ¶
func (mm *MutexMap) Remove(key interface{})
Remove deletes a (key, val) tuple (if exists)
Click to show internal directories.
Click to hide internal directories.