def get_pants_cachedir():
  # Follow the unix XDB base spec: http://standards.freedesktop.org/basedir-spec/latest/index.html.
  cache_home = os.environ.get('XDG_CACHE_HOME')
  if not cache_home:
    cache_home = '~/.cache'
  return os.path.expanduser(os.path.join(cache_home, 'pants'))
Trigger a flush of internal data
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/build_environment.py/get_pants_cachedir--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/storage.py/Storage.trigger_flush