tree: 2a2a25af5f852abe7c7051919d6a4e411afee861 [path history] [tgz]
  1. BUILD
  2. Gc.java
  3. README.md
src/tools/diskcache/README.md

Standalone disk cache garbage collection utility

This utility may be used to manually run a garbage collection on a disk cache, if more control over when which garbage collection runs is desired than afforded by the automatic garbage collection built into Bazel.

Usage (at least one of --max_age and --max_size must be specified):

$ bazel run //src/tools/diskcache:gc \
    --disk_cache=/path/to/disk/cache \
    --max_age=7d --max_size=2G