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

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -