Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14506
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Caching with timed expiry |
| Date | 2012-05-14 23:47 +0200 |
| Message-ID | <a1dcrdF70bU1@mid.individual.net> (permalink) |
| References | <joc4c0$2hm$1@news.albasani.net> <g7plq792jto36o32dqc5bi3k9gv2p94tt6@4ax.com> |
On 09.05.2012 23:43, Roedy Green wrote: > On Tue, 08 May 2012 23:48:48 +0200, Sebastian > <sebastian@undisclosed.invalid> wrote, quoted or indirectly quoted > someone who said : >> does anyone of a cache / map implementation in which entries >> expire after a fixed time? By which I mean that after a cnfigurable >> delay after an enzry has been caches,it is automatically removed >>from the cache and some clean-up action (perhaps event-triggred) >> can be taken. > You might want to look into weak links. > http://mindprod.com/jgloss/weak.html That does not give you control of the timing. In theory a SoftReference might be better because GC is more reluctant to clear it. But it's not entirely clear whether they actually behave differently in practice and you still do not get control of timing. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Caching with timed expiry Sebastian <sebastian@undisclosed.invalid> - 2012-05-08 23:48 +0200
Re: Caching with timed expiry Jim Janney <jjanney@shell.xmission.com> - 2012-05-09 13:14 -0600
Re: Caching with timed expiry Silvio Bierman <silvio@moc.com> - 2012-05-10 10:09 +0200
Re: Caching with timed expiry Jim Janney <jjanney@shell.xmission.com> - 2012-05-10 03:48 -0600
Re: Caching with timed expiry Silvio Bierman <silvio@moc.com> - 2012-05-10 12:56 +0200
Re: Caching with timed expiry Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-05-10 06:57 -0300
Re: Caching with timed expiry Sebastian <sebastian@undisclosed.invalid> - 2012-05-13 23:05 +0200
Re: Caching with timed expiry Roedy Green <see_website@mindprod.com.invalid> - 2012-05-09 14:43 -0700
Re: Caching with timed expiry Robert Klemme <shortcutter@googlemail.com> - 2012-05-14 23:47 +0200
Re: Caching with timed expiry Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 22:18 -0400
Re: Caching with timed expiry Paul Cager <paul.cager@googlemail.com> - 2012-05-09 13:09 -0700
csiph-web