Parse the given string as a cache pruning policy. Defaults are taken from a default constructed CachePruningPolicy object. For example: "prune_interval=30s:prune_after=24h:cache_size=50%" which means a pruning interval of 30 seconds, expiration time of 24 hours and maximum cache size of 50% of available disk space.
Declared in <llvm/Support/CachePruning.h>
Expected<CachePruningPolicy>
parseCachePruningPolicy(StringRef PolicyStr);
Tagged union holding either a T or a Error.
| Name | Description |
|---|---|
| PolicyStr | Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated. |