cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULTDURATION = time.Second * 60 * 3

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

func Exist

func Exist(key string) bool

func Get

func Get(key string) interface{}

func Save

func Save(key string, value interface{})

保存数据,永运不过期

func SaveWithLifeSpan

func SaveWithLifeSpan(key string, value interface{}, lifeDuration time.Duration)

保存数据,指定时间后过期

Types

This section is empty.

Jump to

Keyboard shortcuts

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