mkodekar / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Support for partially random expiration #1814

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When rolling out an upgrade to a cluster of Guava powered instances there's a 
risk that local caches will expire within the same time.

Proposal: Add a method to CacheBuilder that allows for randomization of 
expiration. This will eventually spread expiration evenly over time.

Workaround: Instantiate a Random instance and use it as input to `.expire*` 
method. Cumbersome.

I'd love to hear your input on this.

Original issue reported on code.google.com by jens.ran...@tink.se on 24 Jul 2014 at 11:24

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:07