org.springframework.data.keyvalue.redis.core
Interface RedisCallback<T>
public interface RedisCallback<T>
Callback interface for Redis 'low level' code.
To be used with RedisTemplate
execution methods, often as anonymous classes within a method implementation.
Usually, used for chaining several operations together (get/set/trim etc...
.
- Author:
- Costin Leau
doInRedis
T doInRedis(RedisConnection connection)
throws DataAccessException
- Gets called by
RedisTemplate
with an active Redis connection. Does not need to care about activating or
closing the connection or handling exceptions.
- Parameters:
connection
- active Redis connection
- Returns:
- a result object or
null
if none
- Throws:
DataAccessException
Copyright © 2010-2011 SpringSource. All Rights Reserved.