top of page

SpringBoot & Caching

  • Writer: Anand Nerurkar
    Anand Nerurkar
  • Nov 4, 2023
  • 1 min read



  1. we need to enable caching as below- we could write our configuration class and enable cacjing or we can enable caching in springboot main application class

  2. springboot starter cache in classpath

2.

Below are the sample cache annotation which we can use /map for the fetching record


@Cacheable ---

used for the fetch operation.it always check first in cache if found return data else hit db get data,populate cache and return data.


@CachePut

used for update operation.This is always executing body and then update cache.



@CacheEvict

to remove cache information



@Caching -

used to manage multiple cache



@CacheConfig- at class level



 
 
 

Recent Posts

See All
📘 Chapter 14:

Future of BFSI – AI-First, Composable Banking 1. The Shift Has Already Begun Banking is no longer just about: Accounts Transactions Branches It is becoming: Intelligent Real-time Platform-driven Embed

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook
  • Twitter
  • LinkedIn

©2026 by AeeroTech. Proudly created with Wix.com

bottom of page