Registry /
database / spring-boot-starter-data-redis-reactive
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.
ReactiveRedisTemplate
✓ org.springframework.data.redis.core.ReactiveRedisTemplate
Uses ReactiveRedisTemplate to store a key-value pair in Redis.
import org.springframework.data.redis.core.ReactiveRedisTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Example implements CommandLineRunner {
@Autowired
private ReactiveRedisTemplate<String, String> template;
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}
@Override
public void run(String... args) {
template.opsForValue().set("key", "value").subscribe();
}
}
Audit
Dependencies
No dependency data recorded yet.