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
Post a Comment