Sample application for implementation of Guava Cache and Spring for Database caching

711 Views Asked by At

Firstly I am totally new to Guava cache and Spring as well, I had searched more 50 sites but could not get, what I was looking for. I am searching for implementation of guava cache for caching database values using spring.

Also, previously I had implemented Ehcache but had the following issues:

  1. It does not work with static (as per my findings).
  2. @Cacheable is not working when the cacheable method is called via non-bean class instancehere's the similar issue.
  3. It requires a every time configuration of new cache (ehcache.xml). etc were problems.

So now I am looking for a solution which can over come above hurdles via guava cache if any one could provide a configuration + implementation example with spring than it be a ton help to me. Also if any other way is their for caching data from DB than please let me know (other than manual cache implementation like list,hashmap etc).

0

There are 0 best solutions below