cache

package
v0.2.53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCacheData

func LoadCacheData(fileName string, loader Loader) ([]byte, error)

LoadCacheData loads cached data from the given cache file name and loader

Types

type Loader added in v0.2.23

type Loader func() ([]byte, error)

Loader defines cache value population callback that should be executed if cache entry with given key is not present.

Jump to

Keyboard shortcuts

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