# Functions
Default returns the default cache to use.
DefaultDir returns the effective GOCACHE setting.
FileHash returns the hash of the named file.
GetBytes looks up the action ID in the cache and returns the corresponding output bytes.
GetFile looks up the action ID in the cache and returns the name of the corresponding data file.
GetMmap looks up the action ID in the cache and returns the corresponding output bytes.
NewHash returns a new Hash.
Open opens and returns the cache in the given directory.
PutBytes stores the given bytes in the cache as the output for the action ID.
PutNoVerify is like Put but disables the verify check when GODEBUG=goverifycache=1 is set.
SetFileHash sets the hash returned by FileHash for file.
Subkey returns an action ID corresponding to mixing a parent action ID with a string description of the subkey.
# Constants
HashSize is the number of bytes in a hash.
# Variables
DebugTest is set when GODEBUG=gocachetest=1 is in the environment.
# Structs
A Cache is a package cache, backed by a file system directory tree.
No description provided by the author
A Hash provides access to the canonical hash function used to index the cache.
ProgCache implements Cache via JSON messages over stdin/stdout to a child helper process which can then implement whatever caching policy/mechanism it wants.
ProgRequest is the JSON-encoded message that's sent from cmd/go to the GOCACHEPROG child process over stdin.
ProgResponse is the JSON response from the child process to cmd/go.
# Interfaces
Cache is the interface as used by the cmd/go.
# Type aliases
An ActionID is a cache action key, the hash of a complete description of a repeatable computation (command line, environment variables, input file contents, executable contents).
An OutputID is a cache output key, the hash of an output of a computation.
ProgCmd is a command that can be issued to a child process.