cache

package
v0.2.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForeverDir

func ForeverDir(name string) (string, error)

ForeverDir creates a new cache directory that is stored on the persistent cache. This means data stored in this directory will survive reboot It is the caller's responsibility to remove the directory when no longer needed.

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 survice 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, the the function does nothing and return successfully

Types

This section is empty.

Jump to

Keyboard shortcuts

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