docs/versioned_docs/version-0.16.3/api/engine.mdx
The Engine type represents the Dagger Engine configuration and state. It provides fields to interact with a running Dagger Engine.
Dagger caches two types of data:
The Engine type can be used to inspect or manually prune the cache.
To show all the cache entry metadata, use the following command:
dagger query <<EOF
{
engine {
localCache {
entrySet {
entries {
description
diskSpaceBytes
}
}
}
}
}
EOF
To see high level summaries of cache usage, use the following command:
dagger query <<EOF
{
engine {
localCache {
entrySet {
entryCount
diskSpaceBytes
}
}
}
}
EOF
To manually free up disk space used by the cache, use the following command:
dagger query <<EOF
{
engine {
localCache {
prune
}
}
}
EOF