cache

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cache provides disk cache for Actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir added in v0.19.5

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

CacheDir creates a cache folder for current user and returns the path

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 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