Note that there are some explanatory texts on larger screens.

plurals
  1. USNils
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThe map would grow too big over time with the throughput level I deal with and I need something to automatically clean it up as well which is where the complexity is starting to grow and why I seek advice about a tested solution instead of necessarily rolling my own even if that wouldn't be too hard
      singulars
    2. COI agree going the Guava route (no problem in my environment) would be the preferred way, however, I just noticed that CacheBuilder is in version r10 of Guava which is not yet released :( So to proceed right now I need something else or need to rely on deprecated functionality. I wrapped a quick working example using @Shawn's suggestion and it seems to do OK, so perhaps if I abstract it away I can simply switch to Guava R10 once it's available. But do anyone have an idea about if performance would be an issue using a scheduled executor in the way suggested?
      singulars
    3. COThanks for the advice, looks very helpful! Actually when looking closer I can see this method is deprecated though and replaced by [CacheBuilder](http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/cache/CacheBuilder.html) which is in beta. I'll be having a look at this now and compare it to the solution @Shawn suggested. What I'm looking for is a "fire-and-forget" solution that won't have to make me think about memory management based on the number of calls I intend to do, based on that, would you say there is an advantage to any of the two solutions?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload