springboot-redis-module-skill

springboot-redis-module-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 110 tokens per session (1,367 once invoked), scanned A, original, Apache-2.0.

A Spring Boot integration module for Redis, a fast data store often used for temporary data, shared login sessions, coordination between servers, request limits, and message streams. It is intended for an existing Spring Boot project.

In plain words
What is it for?
Use it to add caching, shared sessions, distributed locks, request rate limiting, Redis Streams messaging, counters, or leaderboards.
Why use it?
It removes much of the setup needed to add common Redis-based features and provides patterns for using them in Spring services.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add caching, shared sessions, distributed locks, request rate limiting, Redis Streams messaging, counters, or leaderboards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/springboot-redis-module-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill springboot-redis-module-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for springboot-redis-module-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-redis-module-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-redis-module-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for springboot-redis-module-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-redis-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01367
Opus 5 $0.00055 $0.00683
Sonnet 5 $0.00022 $0.00273
Haiku 4.5 $0.00011 $0.00137

Measured 11d ago against content hash 4b4981ebe5f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

springboot-redis-module-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vibeCoding/backend/java/springboot-module/springboot-redis-module-skill/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Redis Module Skill

面向已有 Spring Boot 项目的开发者,快速集成 Redis 能力。

能力清单

能力 说明
缓存 @Cacheable 注解缓存、缓存更新、缓存删除
Session Redis Session 共享、Spring Session 配置
分布式锁 基于 Redis 的分布式锁(Redisson)
限流 基于 Redis 的接口限流
消息队列 Redis Stream 消息发布/订阅
计数器 分布式计数器、排行榜

触发场景

用户说"帮我加 Redis"或"集成 Redis"时触发。

依赖配置

<!-- pom.xml 添加 -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
    <groupId>org.redisson</groupId>
    <artifactId>redisson-spring-boot-starter</artifactId>
    <version>3.24.3</version>
</dependency>

默认方法封装

1. 缓存操作

// RedisConfig.java - 配置
@Configuration
@EnableCaching
public class RedisConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) {
        // 配置序列化器
    }
}

// 使用示例
@Service
public class UserService {
    @Cacheable(value = "users", key = "#id")
    public User getUser(Long id) {
        // 首次查询数据库,之后从缓存取
    }

    @CachePut(value = "users", key = "#user.id")
    public User updateUser(User user) {
        // 更新后自动更新缓存
    }

    @CacheEvict(value = "users", key = "#id")
    public void deleteUser(Long id) {
        // 删除后自动清除缓存
    }
}

2. 分布式锁

@Service
public class LockService {
    @Autowired
    private RedissonClient redisson;

    public void executeWithLock(String lockKey, Runnable task) {
        RLock lock = redisson.getLock(lockKey);
        try {
            lock.lock();
            task.run();
        } finally {
            lock.unlock();
        }
    }

    // 尝试获取锁
    public boolean tryLock(String lockKey, long waitTime, long leaseTime, TimeUnit unit) {
        RLock lock = redisson.getLock(lockKey);
        return lock.tryLock(waitTime, leaseTime, unit);
    }
}

3. 限流

@Component
public class RateLimiter {
    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    public boolean tryAcquire(String key, int maxRequests, long windowSeconds) {
        String value = redisTemplate.opsForValue().increment(key);
        if (value == null) return false;
        
        if (value == 1) {
            redisTemplate.expire(key, windowSeconds, TimeUnit.SECONDS);
        }
        return value <= maxRequests;
    }
}

// 使用示例
@RestController
public class ApiController {
    @Autowired
    private RateLimiter rateLimiter;

    @GetMapping("/api/data")
    public ApiResponse<Data> getData() {
        String key = "ratelimit:api:data";
        if (!rateLimiter.tryAcquire(key, 100, 60)) {
            throw new BusinessException(-429, "请求过于频繁,请稍后再试");
        }
        // 业务逻辑
    }
}

Read the full file on GitHub · 216 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 110 tokens per session scan A 4b4981ebe5f6

Subscribe to this mod's changes

springboot-redis-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (98 stars, last pushed yesterday), licensed Apache-2.0. It adds 110 tokens to every session and 1,367 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

spring-data-redis

Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.

rrezartprebreza/spring-boot-skills · 37 tokens

background-job-orchestrator

Expert in background job processing with Bull/BullMQ (Redis), Celery, and cloud queues. Implements retries, scheduling, priority queues, and worker management. Use for async task processing, email campaigns, report generation, batch operations. Activate on "background job", "async task", "queue", "worker", "BullMQ"…

curiositech/some_claude_skills · 95 tokens

nw-sd-patterns

Core distributed systems patterns - load balancing, caching, sharding, consistent hashing, message queues, rate limiting, CDN, Bloom filters, ID generation, replication, conflict resolution, CAP theorem.

nWave-ai/nWave · 43 tokens

cache-strategy

Design and implement caching layers for APIs and web applications using Redis or Memcached. Use when you need to reduce database load, improve response times, or handle traffic spikes. Covers cache-aside, write-through, and write-behind patterns, TTL strategies, cache invalidation, and stampede prevention. Trigger…

TerminalSkills/skills · 88 tokens

bull-mq

You are an expert in BullMQ, the high-performance job queue for Node.js built on Redis. You help developers build reliable background processing systems with delayed jobs, rate limiting, prioritization, repeatable cron jobs, job dependencies, concurrency control, and dead-letter handling — powering email sending…

TerminalSkills/skills · 76 tokens

nuxthub

Use when building NuxtHub v0.10.6 applications - provides database (Drizzle ORM with sqlite/postgresql/mysql), KV storage, blob storage, and cache APIs. Covers configuration, schema definition, migrations, multi-cloud deployment (Cloudflare, Vercel), and the new hub:db, hub:kv, hub:blob virtual module imports.

YuDefine/nuxt-supabase-starter · 78 tokens