ichubcache

package
v1.0.502 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const Cache_expire_time = 30 * time.Minute

Variables

View Source
var FileCache = NewFileCache()

Functions

This section is empty.

Types

type FuncFileCache

type FuncFileCache struct {
	Pkey       string
	ExpireTime time.Duration
	// contains filtered or unexported fields
}

func NewFileCache

func NewFileCache() *FuncFileCache

func NewFunFileCache

func NewFunFileCache(pkey string) *FuncFileCache

func (*FuncFileCache) Get

func (this *FuncFileCache) Get(k string) (interface{}, bool)

func (*FuncFileCache) Set

func (this *FuncFileCache) Set(k string, x interface{})

type IchubCache

type IchubCache struct {
	Pkey       string
	ExpireTime time.Duration
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *IchubCache

func NewIchubCache

func NewIchubCache(Pkey string) *IchubCache

func (*IchubCache) Get

func (this *IchubCache) Get(k string) (interface{}, bool)

func (*IchubCache) Set

func (this *IchubCache) Set(k string, x interface{}, d time.Duration)

Jump to

Keyboard shortcuts

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