caching - Java time-based map/cache with expiring keys -


Do any of you find a Java map or a similar standard data store, which can be used after a given timeout Automatically erases entries? It means aging, where the old expired entries are "age-out" automatically.

Preferably in Open Source Library which can be accessed through Maven?

I know that the functionality has done itself and many times in the past, so I am not asking for advice in that regard, but there is a good reference implementation for the indicator.

There is no such option as a solution based, because my keys are likely to be non-interning string and I want a configurable timeout that does not depend on the Canber Collector.

There is also an option on which I do not want to trust because it requires external configuration files. I am looking for code-only solution.

Yes Google Collection, or it is now named, what is said to be such that Can do.

  Concurrent maps & lt; Key, graph & gt; Graph = new mapmaker () .conference level (4). Softcans () .knowledge (). Maximum size (10000) Expression (10, Time UNNET.MINTE) .MiccompumpingMap (new function & lt; key, graph & gt; () {public graph applies key key} {Extensive graph (key) for return;}});  Update:   

According to the US 10.0 (released on September 28, 2011) many of these MapMaker methods have been deprecated in favor of the new: < Pre> Loading & lt; Key, graph & gt; Article = Cachebiller.Nubbuilder () .Concurrency Level (4). WEEKKISE () .Mahotsav (10000) .InfarienAfterWrite (10, TIME UNNET MINES) .BUILD (new cacheldoder & lt; key, graph & gt; () {public graph load (key) throws anyException { (Key);}});


Comments