public interface RedisCallback<T>
RedisTemplate execution methods, often as
anonymous classes within a method implementation. Usually, used for chaining several operations together (
get/set/trim etc....| Modifier and Type | Method and Description |
|---|---|
T |
doInRedis(RedisConnection connection)
Gets called by
RedisTemplate with an active Redis connection. |
T doInRedis(RedisConnection connection) throws DataAccessException
RedisTemplate with an active Redis connection. Does not need to care about activating or
closing the connection or handling exceptions.connection - active Redis connectionnull if noneDataAccessException