java - Cache a variable temporarily or for few minutes -


how cache variable temporarily or few minutes in java?

i need use variable temporarily few minutes hitting database cause huge performance impact.

the problem have db configuration value can changed user. such change needs captured without re-starting server.

so finding option on how cache variable temporarily or few minutes in java. after 5 or 10 minutes interval can clear cache.

something jcf.

how linkedhashmap , customizing removeeldestentry .

caveat being method invoked on puts.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -