In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egccache"

func CacheDirectory

func CacheDirectory(dirs ...string) string

func Cleanup

func Cleanup(options ...cleanupoption) eg.OpFn

func Env

func Env() []string

attempt to build the ccache environment that sets up the ccache environment for caching.

func PrintStatistics

func PrintStatistics(runtime shell.Command) eg.OpFn

print informational statistics about cache usage, use the provided environment.

func Runtime

func Runtime() shell.Command

Create a shell runtime that properly sets up the ccache environment for caching.