15 #ifndef LLVM_SUPPORT_CACHE_PRUNING_H
16 #define LLVM_SUPPORT_CACHE_PRUNING_H
31 std::chrono::seconds
Interval = std::chrono::seconds(1200);
36 std::chrono::seconds
Expiration = std::chrono::hours(7 * 24);
uint64_t MaxSizeBytes
The maximum size for the cache directory in bytes.
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.
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 the di...
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 occured, i.e.
Policy for the pruneCache() function.
StringRef - Represent a constant reference to a string, i.e.