lfm

package module
v0.0.0-...-001a024 Latest Latest
Warning

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

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

README

lfm

Lock free map

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	// contains filtered or unexported fields
}

func New

func New(size int) *Map

func (*Map) Delete

func (m *Map) Delete(key string) bool

func (*Map) Length

func (m *Map) Length() int

func (*Map) Load

func (m *Map) Load(key string) (interface{}, bool)

func (*Map) LoadAndStore

func (m *Map) LoadAndStore(key string, value interface{}) interface{}

func (*Map) LoadOrStore

func (m *Map) LoadOrStore(key string, value interface{}) (interface{}, bool)

func (*Map) Range

func (m *Map) Range(f func(key string, value interface{}) bool)

func (*Map) Store

func (m *Map) Store(key string, value interface{})

func (*Map) StoreNotExists

func (m *Map) StoreNotExists(key string, value interface{}) bool

Jump to

Keyboard shortcuts

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