February 2018
Intermediate to advanced
406 pages
9h 55m
English
The local cache is present in the same JVM as that of the service. Its scope is limited as it can be accessed by the service instance and has to be entirely managed by the service instance.
Let's start by making our products cacheable in a local cache.
Spring 3.1 introduced its own notations for returning cached entries, evicting, or populating entries. But later on, JSR 107 JCache introduced different notations. Spring 4.1 and higher supports these as well.
Let's use the Spring notations to begin with:
@SpringBootApplication ...
Read now
Unlock full access