Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates…

MITAuto-check: notesBackend & APIs

Install Spring Boot Cache

skills CLI
$ npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-cache -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install giuseppe-trisciuoglio/developer-kit spring-boot-cache --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/developer-kit-java/skills/spring-boot-cache .claude/skills/spring-boot-cache && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
spring-boot-cache
GitHub stars
356
Token cost
~1.4k tokens
SKILL.md length
463 words
Files
5 (incl. references)
Skills in repo
115
Repo updated
First seen
Licence
MIT

At a glance

Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates…

  • Works in 6 steps: Add dependencies —… → Enable caching — annotate a… → Annotate methods — @Cacheable for reads,… → …
  • Adding caching to Spring Boot services
  • SKILL.md covers Overview, When to Use, Instructions and Examples, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Spring Boot Cache is an agent skill from giuseppe-trisciuoglio/developer-kit. Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator. Use when adding caching to Spring Boot services, configuring cache expiration, evicting stale data, or diagnosing cache misses.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/cache-core-reference.md`, `references/cache-examples.md` and `references/spring-cache-doc-snippet.md`).

It sits in Backend & APIs, covering Backend development and Caching. It works with Spring Boot and Redis. The repository describes itself as: Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI. The licence is MIT.

When your agent uses it

  • Adding caching to Spring Boot services
  • Configuring cache expiration
  • Evicting stale data
  • Diagnosing cache misses

Example prompts

  • “Use the spring-boot-cache skill to provide patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and…”
  • “/spring-boot-cache”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Bash

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Add dependencies — spring-boot-starter-cache plus a provider
  2. Enable caching — annotate a @Configuration class with @EnableCaching
  3. Annotate methods — @Cacheable for reads, @CachePut for writes,
  4. Configure TTL/eviction — set spring.cache.caffeine.spec,
  5. Shape keys — use SpEL in key attributes; guard with
  6. Validate setup — run integration test to confirm cache hit on second

What it can do on your machine

Read from SKILL.md and the folder at commit fe73fb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Spring Boot Cache loads about 1.4k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 100 tokens; SKILL.md has 463 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~100
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from giuseppe-trisciuoglio/developer-kit at commit fe73fb3, republished under its MIT licence (© giuseppe-trisciuoglio). 463 words, ~1,373 tokens.

Download SKILL.mdSave it as .claude/skills/spring-boot-cache/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
spring-boot-cache
description
Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator. Use when adding caching to Spring Boot services, configuring cache expiration, evicting stale data, or diagnosing cache misses.
allowed-tools
Read, Write, Bash

Spring Boot Cache Abstraction

Overview

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.

When to Use

  • Add @Cacheable, @CachePut, or @CacheEvict to service methods.
  • Configure Caffeine, Redis, or Ehcache with TTL and capacity policies.
  • Implement eviction strategies for stale data.
  • Diagnose cache misses or invalidation issues.
  • Expose hit/miss metrics via Actuator or Micrometer.

Instructions

  1. Add dependencies — spring-boot-starter-cache plus a provider:

    • Caffeine: caffeine starter
    • Redis: spring-boot-starter-data-redis
    • Ehcache: ehcache starter
  2. Enable caching — annotate a @Configuration class with @EnableCaching and define a CacheManager bean.

  3. Annotate methods — @Cacheable for reads, @CachePut for writes, @CacheEvict for deletions.

  4. Configure TTL/eviction — set spring.cache.caffeine.spec, spring.cache.redis.time-to-live, or spring.cache.ehcache.config.

  5. Shape keys — use SpEL in key attributes; guard with condition/unless for selective caching.

  6. 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.

Examples

Example 1: Basic @Cacheable Usage
java
@Service
@CacheConfig(cacheNames = "users")
class UserService {

    @Cacheable(key = "#id", unless = "#result == null")
    User findUser(Long id) { ... }
}
First call → cache miss, repository invoked
Second call → cache hit, repository skipped
Example 2: Conditional Caching with SpEL
java
@Cacheable(value = "products", key = "#id", condition = "#price > 100")
public Product getProduct(Long id, BigDecimal price) { ... }

// Only expensive products are cached
Example 3: Cache Eviction
java
@CacheEvict(value = "users", key = "#id")
public void deleteUser(Long id) { ... }

For progressive scenarios (basic product cache, multilevel eviction, Redis integration), load references/cache-examples.md.

Advanced Options

  • Use JCache annotations (@CacheResult, @CacheRemove) for providers favoring JSR-107 interoperability; avoid mixing with Spring annotations on the same method.
  • Cache reactive return types (Mono, Flux) or CompletableFuture values.
  • Apply HTTP CacheControl headers when exposing cached responses via REST.
  • Schedule periodic eviction with @Scheduled for time-bound caches.
  • Create a CacheManagementService for programmatic cacheManager.getCache(name).
Show full SKILL.md (205 more words)Show less

Troubleshooting

If cache misses persist after adding @Cacheable:

  1. Verify @EnableCaching is present on a @Configuration class.
  2. Confirm the method is public and called from outside the class (Spring uses proxies; self-invocation bypasses the cache).
  3. Validate SpEL key expressions resolve correctly.
  4. Confirm the cache manager bean is registered as cacheManager or explicitly referenced via cacheManager = "myCacheManager".

References

Best Practices

  • Prefer constructor injection and immutable DTOs for cache entries.
  • Separate cache names per aggregate (users, orders) to simplify eviction.
  • Log cache hits/misses only at debug; push metrics via Micrometer.
  • Tune TTLs based on data staleness tolerance; document rationale in code.
  • Guard caches storing PII or credentials with encryption or avoid caching.
  • Align cache eviction with transactional boundaries to prevent dirty reads.

Constraints and Warnings

  • Avoid caching mutable entities that depend on open persistence contexts.
  • Do not mix Spring cache annotations with JCache annotations on the same method.
  • Validate serialization compatibility when caching across service instances.
  • Monitor memory footprint to prevent OOM with in-memory stores.
  • Caffeine + Redis multi-level caches require publish/subscribe invalidation channels.

© giuseppe-trisciuoglio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in plugins/developer-kit-java/skills/spring-boot-cache of giuseppe-trisciuoglio/developer-kit.

  • SKILL.md
  • references/cache-core-reference.md
  • references/cache-examples.md
  • references/spring-cache-doc-snippet.md
  • references/spring-framework-cache-docs.md

Open the folder on GitHubat commit fe73fb3

Compare with similar skills

Spring Boot Cache next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Spring Boot Cache compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Spring Boot Cache this skillgiuseppe-trisciuoglio/developer-kit356—~1.4kAutomated safety check: NotesMIT
Spring Data Redisrrezartprebreza/spring-boot-skills298—~1.6kAutomated safety check: PassMIT
FastAPI-Redis SDK Developmentredis/fastapi-redis-sdk404—~2.5kAutomated safety check: NotesMIT
Springboot Patternsaffaan-m/ECC276k5 repos~2.5kAutomated safety check: PassMIT
Create Spring Boot Java Projectgithub/awesome-copilot40k1 repos~1.1kAutomated safety check: PassMIT
Create Spring Boot Kotlin Projectgithub/awesome-copilot40k1 repos~1kAutomated safety check: PassMIT

Similar skills

  • Spring Data Redis

    rrezartprebreza/spring-boot-skills

    A skill your agent uses when implementing caching, session storage, rate limiting, or any Redis integration.

    298 GitHub stars~1.6k tokensUpdated 18 days ago
    Backend & APIsAuto-check passed
  • FastAPI-Redis SDK Development

    redis/fastapi-redis-sdk

    Official

    Guides development on the fastapi-redis-sdk library itself - its connection lifecycle, dependency-injected caching, and async/sync bridging.

    404 GitHub stars~2.5k tokensUpdated 8 days ago
    Backend & APIsAuto-check: notes
  • Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging.

    276k GitHub starsUsed in 5 repos~2.5k tokens
    Backend & APIsAuto-check passed
  • Create Spring Boot Java Project

    github/awesome-copilot

    Official

    Create Spring Boot Java Project Skeleton. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~1.1k tokens
    Backend & APIsAuto-check passed
  • Create Spring Boot Kotlin Project

    github/awesome-copilot

    Official

    Create Spring Boot Kotlin Project Skeleton. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~1k tokens
    Backend & APIsAuto-check passed
  • Multi Tenancy

    rrezartprebreza/spring-boot-skills

    A skill your agent uses when implementing tenant resolution, database or schema isolation, tenant-aware JPA, reactive tenant context, migrations, caching, jobs, or authorization in Spring Boot 3.

    298 GitHub stars~576 tokensUpdated 18 days ago
    Backend & APIsAuto-check passed

More from giuseppe-trisciuoglio/developer-kit

All 115 skills in this repo
  • Nestjs Drizzle Crud Generator

    giuseppe-trisciuoglio/developer-kit

    Generates complete CRUD modules for NestJS applications with Drizzle ORM.

    356 GitHub stars~1.3k tokensUpdated 29 days ago
    Auto-check: notes
  • Spring Boot Actuator

    giuseppe-trisciuoglio/developer-kit

    Provides patterns to configure Spring Boot Actuator for production-grade monitoring, health probes, secured management endpoints, and Micrometer metrics across JVM services.

    356 GitHub stars~2.2k tokensUpdated 29 days ago
    Auto-check: notes
  • Spring Boot Crud Patterns

    giuseppe-trisciuoglio/developer-kit

    Provides and generates complete CRUD workflows for Spring Boot 3 services.

    356 GitHub stars~2.5k tokensUpdated 29 days ago
    Auto-check: notes
  • Spring Boot Security JWT

    giuseppe-trisciuoglio/developer-kit

    Provides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based…

    356 GitHub stars~3.9k tokensUpdated 29 days ago
    Auto-check: notes
  • AWS CLI Beast

    giuseppe-trisciuoglio/developer-kit

    Provides advanced AWS CLI patterns for managing EC2, Lambda, S3, DynamoDB, RDS, VPC, IAM, and CloudWatch.

    356 GitHub stars~1.7k tokensUpdated 29 days ago
    Auto-check: notes
  • PR Review Comments

    giuseppe-trisciuoglio/developer-kit

    Posts review findings from a JSON file as inline comments on a GitHub Pull Request, attaching each comment to its file and line.

    356 GitHub stars~1k tokensUpdated 29 days ago
    Auto-check: notes

Categories

Questions about Spring Boot Cache

What does Spring Boot Cache do?

Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates…. Spring Boot Cache is an agent skill from giuseppe-trisciuoglio/developer-kit. Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator.

When should I use Spring Boot Cache?

Spring Boot Cache fits situations like: adding caching to Spring Boot services; configuring cache expiration; evicting stale data; diagnosing cache misses.

How do I install Spring Boot Cache in Claude Code?

Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-cache -a claude-code`. Or copy the skill folder (plugins/developer-kit-java/skills/spring-boot-cache in giuseppe-trisciuoglio/developer-kit) into .claude/skills/spring-boot-cache in your project. Claude Code loads it when a task matches its description.

How do I install Spring Boot Cache in Codex?

Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-cache -a codex`. Or copy the skill folder (plugins/developer-kit-java/skills/spring-boot-cache in giuseppe-trisciuoglio/developer-kit) into .agents/skills/spring-boot-cache in your project. Codex loads it when a task matches its description.

Can I use Spring Boot Cache in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-cache -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spring-boot-cache, .gemini/skills/spring-boot-cache, .github/skills/spring-boot-cache and .opencode/skills/spring-boot-cache in your project.

What does Spring Boot Cache need to run?

SKILL.md names no scripts, command-line tools or credentials: Spring Boot Cache is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Bash.

Does Spring Boot Cache access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Spring Boot Cache safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Spring Boot Cache use?

Spring Boot Cache is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Spring Boot Cache use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Spring Boot Cache?

Skills that share tags, products or a category with Spring Boot Cache: Spring Data Redis (rrezartprebreza/spring-boot-skills, 298 stars), FastAPI-Redis SDK Development (redis/fastapi-redis-sdk, 404 stars), Springboot Patterns (affaan-m/ECC, 276k stars) and Create Spring Boot Java Project (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Spring Boot Cache?

giuseppe-trisciuoglio (a GitHub user) maintains it in giuseppe-trisciuoglio/developer-kit, which has 356 GitHub stars. The repository holds 115 skills in this directory. The repository was last updated on September 10, 2026.

Source: giuseppe-trisciuoglio/developer-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.