Caching by standard

As our applications have scaled up and beyond, caching has become more commonplace in various technologies. As we have seen from our earlier examples, there are lots of different ways and libraries to help us cache data within our application. However, most of these libraries use their own self-defined interfaces, so what if we want to move between technologies? As we have seen earlier, JPA provides a standardized way to persistently store data, with a number of technologies providing compliant implementations, so what if there was an equivalent for relatively short-term cache data?

Well, now, there is, in the form of the long awaited standard, JCache.

In order to use it, first, we will need to add the JCache API library to our ...

Get Getting Started with Hazelcast - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.