org.springframework.data.keyvalue.redis.core
Interface SessionCallback<T>
public interface SessionCallback<T>
Callback executing all operations against a surrogate 'session' (basically against the same underlying Redis connection).
Allows 'transactions' to take place through the use of multi/discard/exec/watch/unwatch commands.
- Author:
- Costin Leau
Method Summary |
|
execute(RedisOperations<K,V> operations)
Executes all the given operations inside the same session. |
execute
<K,V> T execute(RedisOperations<K,V> operations)
- Executes all the given operations inside the same session.
- Parameters:
operations
- Redis operations
- Returns:
- return value
Copyright © 2010-2011 SpringSource. All Rights Reserved.