Registry / database / spring-data-redis

spring-data-redis

JSON →
library4.0.5javamavenunverified

Spring Data Redis provides easy configuration and access to Redis from Spring applications, supporting both synchronous and reactive operations.

<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>4.0.5</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-DATA-REDIS
S
spring-data-redis
databasejavav4.0.5
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

Configures a RedisTemplate with Jedis connection factory and performs a basic set/get operation.

import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; public class Main { public static void main(String[] args) { JedisConnectionFactory factory = new JedisConnectionFactory(); factory.afterPropertiesSet(); RedisTemplate<String, String> template = new RedisTemplate<>(); template.setConnectionFactory(factory); template.afterPropertiesSet(); template.opsForValue().set("key", "value"); String result = template.opsForValue().get("key"); System.out.println("Value: " + result); } }
Debug
Known issues
breakingSpring Data Redis 4.x requires Spring Framework 6.x and Java 17+.
fix
Ensure your project uses Spring Boot 3.x or compatible Spring Framework version.
affects: >=4.0.0
Upgrade
Version history
4.0.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Meta
1
OpenAI (training)
1
Resources