EngineCache
API reference
A cache storage for the Dagger engine
Implements Node
id: ID!
A unique identifier for this EngineCache.
maxUsedSpace: Int!
The maximum bytes to keep in the cache without pruning.
minFreeSpace: Int!
The target amount of free disk space the garbage collector will attempt to leave.
prune(useDefaultPolicy: Boolean = false,maxUsedSpace: String = "",reservedSpace: String = "",minFreeSpace: String = "",targetSpace: String = "",maxEstimatedBytes: Int,targetEstimatedBytes: Int): Void
Prune the cache of releaseable entries
useDefaultPolicy: Boolean = falseUse enabled engine-wide default disk and structural policies. If no default disk policy is enabled, the disk stage falls back to pruning all releasable disk-cache entries. If false, explicit options select stages; with no options, all releasable disk-cache entries are pruned.
maxUsedSpace: String = ""Override the maximum disk space to keep before pruning (e.g. "200GB" or "80%").
reservedSpace: String = ""Override the minimum disk space to retain during pruning (e.g. "500GB" or "10%").
minFreeSpace: String = ""Override the minimum free disk space target during pruning (e.g. "20GB" or "20%").
targetSpace: String = ""Override the target disk space to keep after pruning (e.g. "200GB" or "50%").
maxEstimatedBytes: IntOverride the maximum structural metadata estimate in absolute bytes. Explicit values must be positive; the configured/default value is used when omitted.
targetEstimatedBytes: IntOverride the structural metadata estimate to target in absolute bytes. Explicit values must be positive and lower than the resolved maximum; the configured/default value is used when omitted.
reservedSpace: Int!
The minimum amount of disk space this policy is guaranteed to retain.
targetSpace: Int!
The target number of bytes to keep when pruning.
entrySet(key: String = ""): EngineCacheEntrySet!
The current set of entries in the cache
key: String = ""