persistentcache

package
v0.0.0-...-340919a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package persistentcache provides a disk-based cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(key string) bool

Exists returns whether the cache exists.

func GetFileForKey

func GetFileForKey(key string) (string, error)

GetFileForKey returns a file where to store the data. We split the key by ":", using the first prefix as directory, if present. This is useful for integrations, which use the check_id formed with $check_name:$hash.

func Read

func Read(key string) (string, error)

Read returns a value previously stored, or the empty string.

func Rename

func Rename(oldKey, newKey string) error

Rename renames a cache file.

func Write

func Write(key, value string) error

Write stores data on disk in the run directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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