spring-boot-redis
Installation
SKILL.md
Spring Boot Redis
Overview
Expert guidance for Redis data access with Spring Boot 4 and Spring Data Redis 4.0.5. Covers the full Redis interaction lifecycle: connection management, template API for all data structures, repository pattern for object-hash mapping, messaging (Pub/Sub and Streams), caching, scripting, transactions, and production readiness.
Key Capabilities:
- RedisTemplate and ReactiveRedisTemplate for all data structures (String, Hash, List, Set, ZSet, Geo, HyperLogLog, Streams)
- RedisRepository pattern with @RedisHash, @Id, @Reference, secondary indexes, TTL
- Serialization strategies (JSON, String, JDK, custom)
- Pub/Sub messaging with RedisMessageListenerContainer
- Redis Streams with StreamMessageListenerContainer and StreamReceiver
- Lua scripting support
- Redis Cache with Spring's @Cacheable
- Transactions and pipelining
- Redis Cluster, Sentinel, and connection mode support
- Observability with Micrometer