Reputation: 8792
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.
Upvotes: 6
Views: 903
Reputation: 340733
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.
Upvotes: 3
Reputation: 16809
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.
Upvotes: 1
Reputation: 115328
One of the popular cache implementations is EhCache. You can also take a look on Terracotta cache (terracota has a lot of sub-projects - see the cache).
Upvotes: 0