yf0994 / guava-libraries

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

Cache.refresh(K key, Callable<V> newValueLoader) #1128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I could use cache (not loading cache) with support for refreshing values 
"manually", i.e.

Cache.refresh(K key, Callable<V> loaderForNewValue);

Would you please consider adding this feature? Thanks.

Original issue reported on code.google.com by pstibr...@gmail.com on 30 Aug 2012 at 2:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thinking about it, I can as well just do

V newValue = loaderForNewValue.call();
cache.put(key, newValue);

Original comment by pstibr...@gmail.com on 30 Aug 2012 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by kak@google.com on 23 Oct 2012 at 4:56

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

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

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

GoogleCodeExporter commented 9 years ago

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