cache

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Megabyte = 1024 * 1024
)

Variables

This section is empty.

Functions

func VolatileDir

func VolatileDir(name string, size uint64) (string, error)

VolatileDir creates a new cache directory that is stored on a tmpfs. This means data stored in this directory will NOT survive a reboot. Use this when you need to store data that needs to survive deamon reboot but not between reboots It is the caller's responsibility to remove the directory when no longer needed. If the directory already exist error of type os.IsExist will be returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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