public interface ReactiveRedisCallback<T>
ReactiveRedisConnection. Allows to execute any number of operations on a single
ReactiveRedisConnection, using any type and number of commands.
This is particularly useful for delegating to existing data access code that expects a
ReactiveRedisConnection to work on. For newly written code, it is strongly recommended to use
ReactiveRedisOperations's more specific operations.
org.reactivestreams.Publisher<T> doInRedis(ReactiveRedisConnection connection) throws DataAccessException
ReactiveRedisTemplate.execute(ReactiveRedisCallback)with an active Redis connection. Does not need to care about activating or closing the
Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain objects.
connection- active Redis connection.
DataAccessException- in case of custom exceptions
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.