Add redis: Boot 4.1 + Spring Data Redis 4.1, the JDK-serialisation default vs Jackson 3 serializers, @RedisHash TTL and keyspace events, @RedisListener, and Redis as the Spring cache

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
Claude
2026-09-21 15:46:55 +00:00
parent 8cdfcd4d8d
commit b0c39a8d4c
60 changed files with 2900 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
# What the Redis starter brings, and what it does not
--- The starter's own dependencies (from its pom) ---
$ grep -E 'artifactId|scope' spring-boot-starter-data-redis-*.pom
<artifactId>spring-boot-starter-data-redis</artifactId>
<artifactId>spring-boot-starter</artifactId>
<scope>compile</scope>
<artifactId>spring-boot-data-redis</artifactId>
<scope>compile</scope>
<artifactId>spring-messaging</artifactId>
<scope>compile</scope>
--- The client and JSON libraries in this module (mvn dependency:tree, filtered) ---
$ mvn dependency:tree -Dincludes=io.lettuce,redis.clients,tools.jackson.core,com.fasterxml.jackson.core,org.springframework.data,org.springframework:spring-messaging
com.ankurm:redis:jar:1.0.0
+- org.springframework.boot:spring-boot-starter-data-redis:jar:4.1.1:compile
| +- org.springframework.boot:spring-boot-data-redis:jar:4.1.1:compile
| | +- org.springframework.boot:spring-boot-data-commons:jar:4.1.1:compile
| | | \- org.springframework.data:spring-data-commons:jar:4.1.1:compile
| | +- io.lettuce:lettuce-core:jar:7.5.2.RELEASE:compile
| | \- org.springframework.data:spring-data-redis:jar:4.1.1:compile
| | \- org.springframework.data:spring-data-keyvalue:jar:4.1.1:compile
| \- org.springframework:spring-messaging:jar:7.0.9:compile
\- org.springframework.boot:spring-boot-starter-jackson:jar:4.1.1:compile
\- org.springframework.boot:spring-boot-jackson:jar:4.1.1:compile
\- tools.jackson.core:jackson-databind:jar:3.1.5:compile
+- com.fasterxml.jackson.core:jackson-annotations:jar:2.21:compile
\- tools.jackson.core:jackson-core:jar:3.1.5:compile
--- The server the tests start ---
$ redis-server --version
Redis server v=7.0.15 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=e53ff17674aa6190