Class ReactiveStringRedisTemplate
java.lang.Object
org.springframework.data.redis.core.ReactiveRedisTemplate<String,String>
org.springframework.data.redis.core.ReactiveStringRedisTemplate
- All Implemented Interfaces:
ReactiveRedisOperations<String,
String>
String-focused
extension of ReactiveRedisTemplate
. As most operations against Redis
are String
based, this class provides a dedicated arrangement that minimizes configuration of its more
generic template
especially in terms of the used RedisSerializationContext
.- Since:
- 2.1
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionReactiveStringRedisTemplate
(ReactiveRedisConnectionFactory connectionFactory) Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
applying defaultString
serialization.ReactiveStringRedisTemplate
(ReactiveRedisConnectionFactory connectionFactory, RedisSerializationContext<String, String> serializationContext) Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
andRedisSerializationContext
.ReactiveStringRedisTemplate
(ReactiveRedisConnectionFactory connectionFactory, RedisSerializationContext<String, String> serializationContext, boolean exposeConnection) Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
andRedisSerializationContext
. -
Method Summary
Methods inherited from class org.springframework.data.redis.core.ReactiveRedisTemplate
convertAndSend, copy, createFlux, createMono, createRedisConnectionProxy, delete, delete, execute, execute, execute, execute, executeInSession, expire, expireAt, getConnection, getConnectionFactory, getExpire, getSerializationContext, hasKey, keys, listenTo, listenToLater, move, opsForGeo, opsForGeo, opsForHash, opsForHash, opsForHyperLogLog, opsForHyperLogLog, opsForList, opsForList, opsForSet, opsForSet, opsForStream, opsForStream, opsForStream, opsForStream, opsForValue, opsForValue, opsForZSet, opsForZSet, persist, postProcessResult, preProcessConnection, randomKey, rename, renameIfAbsent, scan, type, unlink, unlink
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.core.ReactiveRedisOperations
execute, execute, listenToChannel, listenToChannelLater, listenToPattern, listenToPatternLater, scan
-
Constructor Details
-
ReactiveStringRedisTemplate
Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
applying defaultString
serialization.- Parameters:
connectionFactory
- must not be null.- See Also:
-
ReactiveStringRedisTemplate
public ReactiveStringRedisTemplate(ReactiveRedisConnectionFactory connectionFactory, RedisSerializationContext<String, String> serializationContext) Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
andRedisSerializationContext
.- Parameters:
connectionFactory
- must not be null.serializationContext
- must not be null.
-
ReactiveStringRedisTemplate
public ReactiveStringRedisTemplate(ReactiveRedisConnectionFactory connectionFactory, RedisSerializationContext<String, String> serializationContext, boolean exposeConnection) Creates newReactiveRedisTemplate
using givenReactiveRedisConnectionFactory
andRedisSerializationContext
.- Parameters:
connectionFactory
- must not be null.serializationContext
- must not be null.exposeConnection
- flag indicating to expose the connection used.
-