Question

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.

Was it helpful?

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.

OTHER TIPS

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.

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top