Simplify caching packages further (#306)

* Simplify caching packages further

Instead of using a global hashtable of caches with a single key, use
a global variable of the that cache.

Remove contents of "cache" package, while leaving the
"singleflightcache" subpackage.

Fix a bug: fmCache.Reset() cleared caches in all instances of fmCache
instead of just that one. Make the function global and clealry document
that it invalidates the cache globally.

Fix a couple of bugs around usage of atomic package along the way.
8 files changed
tree: 9560056db75a2fd88e881bb2d7f2d4829e4191dc
  1. .bazelci/
  2. .githooks/
  3. external/
  4. go/
  5. .gitignore
  6. AUTHORS
  7. BUILD.bazel
  8. check-gofmt.sh
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. go.mod
  12. go.sum
  13. LICENSE
  14. README.md
  15. remote-apis-sdks-deps.bzl
  16. setup-githooks.sh
  17. WORKSPACE
README.md

Remote Execution API SDKs

CI status: Build Status

PkgGoDev

This repository contains SDKs for the Remote Execution API.

See each language subdirectory's README.md for more specific instructions on using the SDK for that language.