mc

package
v0.0.0-...-fd86128 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketNum = 256
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BigSyncMap

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

func GetMCInstance

func GetMCInstance() *BigSyncMap

GetMCInstance 获取内存缓存实例

func (*BigSyncMap) Del

func (m *BigSyncMap) Del(key string)

func (*BigSyncMap) Get

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

func (*BigSyncMap) Set

func (m *BigSyncMap) Set(key string, val any, ttl int64)

Jump to

Keyboard shortcuts

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