Skip to content

Commit

Permalink
Amend the description of DiskCacheClient to reflect the addition of a…
Browse files Browse the repository at this point in the history
…utomatic garbage collection.

PiperOrigin-RevId: 679593657
Change-Id: I4f5aa03d88913702ab4c1b879bc2bc9b0c40f720
  • Loading branch information
tjgq authored and copybara-github committed Sep 27, 2024
1 parent 6f3f24a commit db4a400
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@
* when they collide.
*
* <p>The mtime of an entry reflects the most recent time the entry was stored *or* retrieved. This
* property may be used to trim the disk cache to the most recently used entries. However, it's not
* safe to trim the cache at the same time a Bazel process is accessing it.
* property may be used to garbage collect the disk cache by deleting the least recently accessed
* entries. This may be done by Bazel itself (see {@link DiskCacheGarbageCollectorIdleTask}), by
* another Bazel process sharing the disk cache, or by an external process. Although we could have
* arranged for an ongoing garbage collection to block a concurrent build, we judge it to not be
* worth the extra complexity; assuming that the collection policy is not overly aggressive, the
* likelihood of a race condition is fairly small, and an affected build is able to automatically
* recover by retrying.
*/
public class DiskCacheClient {

Expand Down

0 comments on commit db4a400

Please sign in to comment.