ConcurrentHashMap

package module
v0.0.0-...-25984e7 Latest Latest
Warning

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

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

README

A thread-safe generic map structure in Golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[K comparable, V any](concurrentLevel uint64, initialCapacity uint64) *Map[K, V]

func (*Map[K, V]) Put

func (m *Map[K, V]) Put(k K, v V) error

func (*Map[K, V]) Remove

func (m *Map[K, V]) Remove(key K) error

func (*Map[K, V]) Size

func (m *Map[K, V]) Size() int64

Jump to

Keyboard shortcuts

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