jsoncache

package
v0.0.0-...-ffba611 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = os.ErrNotExist
)

Functions

func Get

func Get(key string, into interface{}, i InvalidateCachePeriod) error

func Set

func Set(key string, data interface{}, i InvalidateCachePeriod) error

Types

type InvalidateCachePeriod

type InvalidateCachePeriod int
const (
	InvalidateHourly InvalidateCachePeriod = iota + 1
	InvalidateDaily
	InvalidateWeekly
	InvalidateMonthly
	InvalidateNow
)

Jump to

Keyboard shortcuts

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