memory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `memory`

Variables

This section is empty.

Functions

func New

func New(opts ...interface{}) cache.Cache

Types

type Callback

type Callback func(k string, v interface{})

type Option

type Option func(b *barrel)

func WithCallback

func WithCallback(call Callback) Option

WithCallback 选择超时回调方法

func WithCheckDur

func WithCheckDur(dur time.Duration) Option

WithCheckDur 选择超时检查间隔

func WithShardNum

func WithShardNum(num int) Option

WithShardNum 选择分片数

Jump to

Keyboard shortcuts

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