cache

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(callerFile string, callerLine int, keys ...cache.Key) (file string, err error)

File returns the cache filename for given values TODO cleanup

func Load

func Load(file string, timeout time.Duration) (rawValues []common.RawValue, err error)

Load loads values from file unless modification date exceeds timeout

func TempDir

func TempDir(name string) (dir string, err error)

TempDir creates a temporary folder for current user and returns the path

func Write

func Write(file string, rawValues []common.RawValue) (err error)

Write persistests given values to file as json

Types

This section is empty.

Jump to

Keyboard shortcuts

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