concurrentmap

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentMap

type ConcurrentMap struct {
	*sync.Map
	KeyType   reflect.Type
	ValueType reflect.Type
}

func NewConcurrentMap

func NewConcurrentMap(keyType, valueType interface{}) *ConcurrentMap

func (*ConcurrentMap) Delete

func (cm *ConcurrentMap) Delete(key interface{})

func (*ConcurrentMap) Load

func (cm *ConcurrentMap) Load(key interface{}) (value interface{}, ok bool)

func (*ConcurrentMap) LoadOrStore

func (cm *ConcurrentMap) LoadOrStore(key, value interface{}) (actual interface{}, loaded bool)

func (*ConcurrentMap) Range

func (cm *ConcurrentMap) Range(f func(key, value interface{}) bool)

func (*ConcurrentMap) Store

func (cm *ConcurrentMap) Store(key, value interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL