{"modulePath":"github.com/threefoldtech/zos_base","version":"v1.1.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\n## Constants\n\n```go\nconst (\n\tMegabyte = 1024 * 1024\n)\n```\n\n## Functions\n\n```go\nfunc VolatileDir(name string, size uint64) (string, error)\n```\nVolatileDir 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\n\n","path":"github.com/threefoldtech/zos_base/pkg/cache","name":"cache","synopsis":"","isRedistributable":true}
