Using local disk cache and remote cache together

43 views
Skip to first unread message

Gaurav Negi

unread,
Sep 24, 2019, 4:19:34 PM9/24/19
to bazel-discuss
 Dear Bazel experts,
     I have a question about remote and disk caching.

I am using bazel 0.22
I want to use both local disk caching (using --disk_cache) and also remote caching
as per this doc

using --experimental_remote_spawn_cache --remote_http_cache=http://IP:9090/

for that.

I want bazel to 1st use disk_cache and if it donot find object there use remote cache.
For that, do I need to set any variable/parameter or bazel will do that by itself (First look for disk cache and then remote cache)?


Thanks
-Gaurav

jga...@butterflynetinc.com

unread,
Sep 25, 2019, 2:57:58 PM9/25/19
to bazel-discuss
I think you'll want at least bazel 0.26 for using remote and local caching together, there was a bug that was fixed in 0.26.


That should be the behavior, bazel will consult the local cache and then the remote cache.

Keith Smiley

unread,
Sep 25, 2019, 3:02:14 PM9/25/19
to jga...@butterflynetinc.com, bazel-discuss
FYI there is another bug that might block you from using this: https://github.com/bazelbuild/bazel/issues/8216
--
Keith Smiley


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/cf81af7c-e391-4fcc-adfc-277545be51b5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages