15 #ifndef LLVM_SUPPORT_CACHE_PRUNING_H 16 #define LLVM_SUPPORT_CACHE_PRUNING_H 37 std::chrono::seconds
Expiration = std::chrono::hours(7 * 24);
uint64_t MaxSizeBytes
The maximum size for the cache directory in bytes.
This class represents lattice values for constants.
Interval Class - An Interval is a set of nodes defined such that every node in the interval has all o...
std::chrono::seconds Expiration
The expiration for a file.
uint64_t MaxSizeFiles
The maximum number of files in the cache directory.
Tagged union holding either a T or a Error.
unsigned MaxSizePercentageOfAvailableSpace
The maximum size for the cache directory, in terms of percentage of the available space on the disk...
Expected< CachePruningPolicy > parseCachePruningPolicy(StringRef PolicyStr)
Parse the given string as a cache pruning policy.
bool pruneCache(StringRef Path, CachePruningPolicy Policy)
Peform pruning using the supplied policy, returns true if pruning occurred, i.e.
Policy for the pruneCache() function.
StringRef - Represent a constant reference to a string, i.e.