Interface IBatch
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Represents a block of operations that will be sent to the server together; this can be useful to reduce packet fragmentation on slow connections - it can improve the time to get all the operations processed, with the trade-off of a slower time to get the first operation processed; this is usually a good thing. Unless this batch is a transaction, there is no guarantee that these operations will be processed either contiguously or atomically by the server.
public interface IBatch : IDatabaseAsync, IRedisAsync
- Inherited Members
Methods
Execute()
Execute the batch operation, sending all queued commands to the server. Note that this operation is neither synchronous nor truly asyncronous - it simply enqueues the buffered messages. To check on completion, you should check the individual responses.
void Execute()