Search code examples
javacachingfacade

Are there any existing Java caching facades?


I'm getting ready to start working on performance in an application which will eventually be running distributed, but currently is in [greenfield] development.

I'd like to be able to introduce caching without either selecting or committing to a specific library, so I am wondering whether there is a caching facade library (analogous to slf4j for logging) already in existence that will allow me to make that decision at a later date.


Solution

  • There is also a Java standard: JSR 107: JCACHE - Java Temporary Caching API. Pretty much dead, but there was some movement half year ago. Also there is quite a lot happens in the source repository. EhCache supports this JSR natively.

    If you are using Spring, it has a great caching abstraction.