cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 13 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

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 ...key.Key) (file string, err error)

File returns the cache filename for given values TODO cleanup

func Load

func Load(file string, timeout time.Duration) (b []byte, err error)

func LoadE

func LoadE(file string, timeout time.Duration) (*export.Export, error)

func Write

func Write(file string, content []byte) (err error)

func WriteE

func WriteE(file string, e export.Export) (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