/java-spring:java-cachefrom java-spring
Configures and reviews Spring Boot caching with Caffeine or Redis, including @Cacheable/@CacheEvict/@CachePut annotations, TTL, serialization, and eviction patterns.
Ships in java-spring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Detect the cache provider in use, then apply the correct patterns.
Check pom.xml or build.gradle:
spring-boot-starter-data-redis → Redis (Lettuce client by default)spring-boot-starter-cache + caffeine → Caffeine (in-process)spring-boot-starter-cache only → Simple (ConcurrentHashMap, dev only)Check Spring Boot version:
reviewUser asks to review existing cache configuration. Check for:
@EnableCaching present on a @Configuration class — missing it silently disables all cache annotationsapplication.yml with explicit TTL — no unnamed or unbounded caches@Cacheable methods are on Spring-managed beans (not private, not called within the same class — proxy bypass)@Cacheable(key = "#id") not #root.methodName unless intentional@CacheEvict present wherever data is mutated — missing eviction causes stale cache@CachePut used to update cache on write — not a @CacheEvict + re-fetch patternGenericJackson2JsonRedisSerializertime-to-live, entries never expiremaximumSize set — without it, cache grows unbounded and causes OOM@Cacheable(unless = "#result == null") to avoid caching nullsmanagement.metrics.cache.instrument=truesetupUser asks to add caching from scratch.
spring-boot-starter-cache + com.github.ben-manes.caffeine:caffeine@EnableCaching to a @Configuration classapplication.yml — set maximum-size and expire-after-write@Cacheable, @CacheEvict, @CachePutspring-boot-starter-data-redisspring.data.redis.host/port (Boot 3.x) or spring.redis.host/port (Boot 2.x)RedisCacheConfiguration bean — set TTL and use GenericJackson2JsonRedisSerializer@EnableCaching and annotate service methodsSee references/patterns.md for full configuration examples.
cacheableUser asks to cache the result of a method.
@Cacheable(cacheNames = "products", key = "#id") on the service methodprivateunless = "#result == null" to avoid caching null resultsSerializable (Redis) or any object (Caffeine)@CacheEvict on the update/delete methodevictUser asks to invalidate/evict cache entries on data changes.
@CacheEvict(cacheNames = "products", key = "#id") — evict a single entry on update/delete@CacheEvict(cacheNames = "products", allEntries = true) — evict all entries (use sparingly)@CacheEvict(beforeInvocation = true) — evict before method runs (use when method may throw)@Caching(evict = { @CacheEvict("products"), @CacheEvict("productList") })redisUser asks specifically for Redis cache configuration.
spring-boot-starter-data-redisspring.data.redis.host, spring.data.redis.port, spring.data.redis.passwordRedisCacheManager bean with:
GenericJackson2JsonRedisSerializer for values (human-readable, portable)StringRedisSerializer for keys@EnableCachingspring.data.redis.cluster.nodesspring.data.redis.sentinel.master and nodesFor review mode: list findings as [CRITICAL] / [HIGH] / [MEDIUM] / [LOW] with file:line references.
For implementation modes: show exact Maven/Gradle dependency, full application.yml block, and complete Java configuration + annotated example. State minimum Spring Boot version where it differs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Java, Spring Boot, Redis, SQL
spring-cache, caffeine-cache, redis-cache, cacheable, cache-eviction
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-spring9 skills in this plugin
/java-crud/java-crud — Spring Boot CRUD GeneratorGenerates a complete Spring Boot CRUD feature (entity, repository, service, controller, DTOs, tests) in an existing project. Use when user asks to "add CRUD for", "generate entity", "create a feature for", "add REST endpoints for", "scaffold a feature", or "build CRUD for"./java-jpa/java-jpa — Spring Data JPA Deep ReviewReviews Spring Data JPA for N+1 queries, fetch strategies, projections, and Specifications. Use when user asks to "review JPA", "check for N+1", "JPA performance", "review my entities", "check fetch strategy", or "review my repositories"./java-logging/java-logging — Java Logging ReviewReviews Java logging for SLF4J best practices, MDC context, structured logging, and PII safety. Use when user asks to "review logging", "check my logs", "logging review", "is my logging correct", "MDC setup", or "check for PII in logs"./java-openapi/java-openapi — OpenAPI / Swagger DocumentationGenerates or reviews OpenAPI / Swagger documentation for Spring Boot REST APIs — adds @Operation, @Schema, @ApiResponse annotations and configures Swagger UI. Use when user asks to "add Swagger", "document this API", "generate OpenAPI spec", "add @Operation annotations", "set up Swagger UI", or "document endpoints"./java-resilienceUse when the user asks to add resilience patterns, handle service failures, implement circuit breaker, retry, rate limiter, bulkhead, or timeout in a Spring Boot project using Resilience4J./java-scaffold/java-scaffold — New Spring Boot Project GeneratorScaffolds a brand-new Spring Boot project from scratch — build file, package structure, and a starter feature. Use when user asks to "create a new Spring Boot project", "bootstrap a project", "start a new project", "generate a new app", or "scaffold a new service".Other plugins' skills for the same job