Recently, I have had a chance to review the book "Instant Effective Caching with Ehcache" by Daniel Wind. Honestly, I do think the book justifies its title very well: constructed as a set of various recipes, it guides you step-by-step through typical scenarios by providing brief explanation along with small code snippets, clear enough to serve as a starting point (most recipes also have references to relevant sections of EhCache documentation).
If you have ever worked with EhCache, many recipes would look very familiar to you. But for a newbie or even intermediate developer, it might be very interesting to see:
- how to configure EhCache either programmatically or by using XML
- how to integrate EhCache with Spring Framework and/or Hibernate
- how to use EhCache search capabilities
- how to subscribe to cache events
- how to handle cache errors
More advanced examples include:
- distributed caching using EhCache server or Terracotta Server Array
- basic support for transactions (including JTA)
As a final note: short but useful book, not a comprehensive guide to EhCache world but rather a quick reference. Thanks to Daniel Wind for gathering all these recipes together.
No comments:
Post a Comment