cache

package
v0.0.0-...-fea8a0b Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExpiredDate = 3600 * 24 * 30 * time.Second
)

Functions

func DelFromCache

func DelFromCache(key string) (err error)

func GetFromCache

func GetFromCache(key string) ([]byte, error)

func Init

func Init()

func SaveToCache

func SaveToCache(key string, val []byte) (err error)

func SaveToCacheDate

func SaveToCacheDate(key string, val []byte, date time.Duration) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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