com.lordofthejars.nosqlunit.redis.embedded
Class TransactionServerOperations
java.lang.Object
com.lordofthejars.nosqlunit.redis.embedded.TransactionServerOperations
public class TransactionServerOperations
- extends Object
|
Method Summary |
redis.clients.jedis.Transaction |
multi()
|
List<Object> |
multi(redis.clients.jedis.TransactionBlock jedisTransaction)
|
redis.clients.jedis.Pipeline |
pipelined()
|
List<Object> |
pipelined(redis.clients.jedis.PipelineBlock jedisPipeline)
Starts a pipeline, which is a very efficient way to send lots of command
and read all the responses when you finish sending them. |
String |
unwatch()
|
String |
watch(byte[]... keys)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionServerOperations
public TransactionServerOperations()
watch
public String watch(byte[]... keys)
unwatch
public String unwatch()
pipelined
public List<Object> pipelined(redis.clients.jedis.PipelineBlock jedisPipeline)
- Starts a pipeline, which is a very efficient way to send lots of command
and read all the responses when you finish sending them. Try to avoid
this version and use pipelined() when possible as it will give better
performance.
- Parameters:
jedisPipeline -
- Returns:
- The results of the command in the same order you've run them.
pipelined
public redis.clients.jedis.Pipeline pipelined()
multi
public redis.clients.jedis.Transaction multi()
multi
public List<Object> multi(redis.clients.jedis.TransactionBlock jedisTransaction)
Copyright © 2012. All Rights Reserved.