Class ReactiveRedisTemplate<K,V>

java.lang.Object
org.springframework.data.redis.core.ReactiveRedisTemplate<K,V>
Type Parameters:
K - the Redis key type against which the template works (usually a String)
V - the Redis value type against which the template works
All Implemented Interfaces:
ReactiveRedisOperations<K,V>
Direct Known Subclasses:
ReactiveStringRedisTemplate

public class ReactiveRedisTemplate<K,V> extends Object implements ReactiveRedisOperations<K,V>
Central abstraction for reactive Redis data access implementing ReactiveRedisOperations.

Performs automatic serialization/deserialization between the given objects and the underlying binary data in the Redis store.

Note that while the template is generified, it is up to the serializers/deserializers to properly convert the given Objects to and from binary data.

Streams of methods returning Mono<K> or Flux<M> are terminated with InvalidDataAccessApiUsageException when RedisElementReader.read(ByteBuffer) returns null for a particular element as Reactive Streams prohibit the usage of null values.

Since:
2.0
Author:
Mark Paluch, Christoph Strobl, Petromir Dzhunev, John Blum