Caching with timed expiry



Hello there,

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.

My scenario is this: A GUI client searches an LDAP server using
the virtual list view control. The server requires all requests
to be made over the same connection. So my middleware component
will need to check out that connection from a pool and cache it,
using the ASN1 cookie sent by the client as a key.

Trouble is, if the client never signals that it won't request
another page (e. g. because it crashes), I need to auto-release
the LDAP server connection to the connection pool to prevent leakage.
I thought that a ready-made cache with timed expiry would come in handy.
If there is no such beast, any ideas for possible approaches?

-- Sebastian
.



Relevant Pages

  • Re: Caching with timed expiry
    ... from the cache and some clean-up action ... A GUI client searches an LDAP server using ... to be made over the same connection. ... the LDAP server connection to the connection pool to prevent leakage. ...
    (comp.lang.java.programmer)
  • Re: Caching with timed expiry
    ... from the cache and some clean-up action ... A GUI client searches an LDAP server using ... to be made over the same connection. ... the LDAP server connection to the connection pool to prevent leakage. ...
    (comp.lang.java.programmer)
  • Re: How to clear Os9 comms blockage?
    ... But meanwhile, my wireless ... >> of my connection. ... It seems unlikely to me that any of my cache files could ... In view of the blanket effect on all my internet apps, ...
    (comp.sys.mac.comm)
  • Re: XP remote connect to Win2K PC?
    ... synch every few months. ... crucial details of the cache behavior which is sometimes useful. ... >> If you have a 100mbps full duplex ethernet, and use a VPN connection ... >> Many here are accustomed to the speeds that RDP achieves over such ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: XP remote connect to Win2K PC?
    ... connection with each other--the "network" will be a VPN connection between ... >> Server 2003 Resource Kit applet that allows for manual control of several ... >> crucial details of the cache behavior which is sometimes useful. ...
    (microsoft.public.windowsxp.work_remotely)