Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 868
Matt Mills Avatar asked Jan 26 '12 17:01

Matt Mills


Video Answer


2 Answers

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.

like image 99
Tomasz Nurkiewicz Avatar answered Sep 28 '22 01:09

Tomasz Nurkiewicz


If you are using Spring it has a cache abstraction.

Have a look at the blog entry here too which introduced me to the concept.

like image 20
Paul Whelan Avatar answered Sep 28 '22 00:09

Paul Whelan