Caching in Spring Boot

Caching in Spring Boot: @Cacheable, @CachePut and @CacheEvict, cache keys, caching strategies, and the default provider's limit.

  • 7 cards
  • 5 questions
  • About 7 min
  • Intermediate to Advanced
Share

Caching: keeping the result of expensive work so that the next identical request can skip it. Spring makes that a matter of a few annotations, and the harder part is caching the right thing for the right length of time. It covers @EnableCaching and @Cacheable, the three caching annotations, how the cache key is built, cache-aside and write-through, and why the default cache fails once more than one instance of the application runs. It leaves out configuring Redis and Caffeine in detail.

Contents

7 cardsnot started