Bird
0
0

What is the default cache manager used by Spring Boot when spring.cache.type=simple is set?

easy📝 Conceptual Q2 of 15
Spring Boot - Caching
What is the default cache manager used by Spring Boot when spring.cache.type=simple is set?
ARedisCacheManager
BEhCacheCacheManager
CConcurrentMapCacheManager
DCaffeineCacheManager
Step-by-Step Solution
Solution:
  1. Step 1: Identify default cache manager for simple cache

    Spring Boot uses ConcurrentMapCacheManager as the default for simple caching.
  2. Step 2: Exclude other cache managers

    EhCache, Redis, and Caffeine are external or advanced cache managers, not default for simple.
  3. Final Answer:

    ConcurrentMapCacheManager -> Option C
  4. Quick Check:

    Default cache manager = ConcurrentMapCacheManager [OK]
Quick Trick: Simple cache uses ConcurrentMapCacheManager by default [OK]
Common Mistakes:
  • Assuming Redis or EhCache is default without configuration
  • Confusing cache manager with cache provider
  • Not knowing simple cache uses in-memory map

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes