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
Best Chunking Practices

1. Chunk by Semantic Boundaries (NOT fixed size only) Split by sections, headings, paragraphs , or logical units. Avoid cutting a sentence or concept in half. Works best with docs, tech specs, policie

 
 
 
Future State Architecture

USE CASE: LARGE RETAIL BANK – DIGITAL CHANNEL MODERNIZATION 🔹 Business Context A large retail bank wants to “modernize” its digital channels (internet banking + mobile apps). Constraints: Heavy regul

 
 
 

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