simplecache

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TICK_INTERVAL = 30 * time.Second

	NO_EXPIRE = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleCache

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

func New

func New(shardCnt uint8) *SimpleCache

func (*SimpleCache) Get

func (this *SimpleCache) Get(key string) (interface{}, bool)

func (*SimpleCache) Set

func (this *SimpleCache) Set(key string, value interface{}, expire time.Duration)

Jump to

Keyboard shortcuts

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