Registry / database / spring-boot-starter-data-redis

spring-boot-starter-data-redis

JSON →
library4.0.6javamavenunverified

Spring Boot starter for using Redis with Spring Data Redis and the Lettuce client.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>4.0.6</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-BOOT-STARTE
S
spring-boot-starter-data-redis
databasejavav4.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedisTemplate
org.springframework.data.redis.core.RedisTemplate

Injects and uses RedisTemplate to store a key-value pair.

import org.springframework.data.redis.core.RedisTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class Example { @Autowired private RedisTemplate<String, String> redisTemplate; public void setValue(String key, String value) { redisTemplate.opsForValue().set(key, value); } }
Debug
Known issues
gotchaDefault serialization uses JdkSerializationRedisSerializer which is not human-readable and may cause issues with cross-language clients.
fix
Configure RedisTemplate with StringRedisSerializer or Jackson2JsonRedisSerializer.
affects: all
Upgrade
Version history
4.0.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Meta
2
Resources
spring-boot-starter-data-redis — mvn dependency:get spring-boot-starter-data-redis · libregistry