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
RFP PRE/POST-PROPOSAL SUBMISSION FLOW

🏆 1. The 5 Pillars to Win a Large Strategic Deal 1. Understand the Client Better Than They Do 👉 Don’t just read RFP — decode it What is their real problem ? What is driving this deal? (compliance, c

 
 
 
DIGITAL LENDING RFP Solution

🎯 RFP Proposal SOLUTION PRESENTATION – DIGITAL LENDING (WITH COLOR-CODED ARCHITECTURE) 1️⃣ Opening “Thank you for the opportunity. I’ll walk you through our approach to building a next-generation dig

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook
  • Twitter
  • LinkedIn

©2024 by AeeroTech. Proudly created with Wix.com

bottom of page