Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.data.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...`.

Method Summary
`T` | `doInRedis(RedisConnection connection)` Gets called by `RedisTemplate` with an active Redis connection.

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD