exsafemap

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EXSafeMap

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

func New

func New(bucketSize int, options ...*Options) *EXSafeMap

func (*EXSafeMap) Clear

func (m *EXSafeMap) Clear()

func (*EXSafeMap) ClearExpire

func (m *EXSafeMap) ClearExpire()

func (*EXSafeMap) Close

func (m *EXSafeMap) Close()

func (*EXSafeMap) ForEach

func (m *EXSafeMap) ForEach(each func(k string, v any) bool)

func (*EXSafeMap) Get

func (m *EXSafeMap) Get(key string) (any, bool)

func (*EXSafeMap) Keys

func (m *EXSafeMap) Keys(pattern string) []string

func (*EXSafeMap) Run

func (m *EXSafeMap) Run()

func (*EXSafeMap) Set

func (m *EXSafeMap) Set(key string, val any, ex ...time.Duration)

func (*EXSafeMap) Size

func (m *EXSafeMap) Size() int64

type Options

type Options struct {
	CheckExpireSpeed time.Duration
}

Jump to

Keyboard shortcuts

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