Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides Spring Boot caching patterns with Caffeine, Redis, or Ehcache providers, TTL and eviction, and Actuator metrics.
96% 100%+4 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 24 of 25 without it.
3 of 3 safety checks passed
Not used yet
6-step workflow for enabling cache abstraction, configuring providers (Caffeine,
Redis, Ehcache), annotating service methods, and validating behavior in
Spring Boot 3.5+ applications. Apply @Cacheable for reads, @CachePut for
writes, @CacheEvict for deletions. Configure TTL/eviction policies and expose
metrics via Actuator.
@Cacheable, @CachePut, or @CacheEvict to service methods.Add dependencies — spring-boot-starter-cache plus a provider:
caffeine starterspring-boot-starter-data-redisehcache starterEnable caching — annotate a @Configuration class with @EnableCaching
and define a CacheManager bean.
Annotate methods — @Cacheable for reads, @CachePut for writes,
@CacheEvict for deletions.
Configure TTL/eviction — set spring.cache.caffeine.spec,
spring.cache.redis.time-to-live, or spring.cache.ehcache.config.
Shape keys — use SpEL in key attributes; guard with
condition/unless for selective caching.
Validate setup — run integration test to confirm cache hit on second
call; check GET /actuator/caches to verify cache manager registration;
query GET /actuator/metrics/cache.gets for hit/miss ratios.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.