cache

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheList

type CacheList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

CacheList sample map

func NewCacheList

func NewCacheList(name string) *CacheList

NewCacheList get CacheList instance

func (*CacheList) Delete

func (b *CacheList) Delete(key string)

Delete del key

func (*CacheList) Empty added in v2.3.6

func (b *CacheList) Empty() bool

Empty return bool is empty

func (*CacheList) Exists

func (b *CacheList) Exists(key string) bool

Exists exists key,notfound return false

func (*CacheList) Len added in v2.3.6

func (b *CacheList) Len() int

Len get length

func (*CacheList) Put

func (b *CacheList) Put(key string)

Put insert the key to map

Jump to

Keyboard shortcuts

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