/// <summary> /// Flush send buffer, and read responses /// </summary> public void Flush() { // flush send buffers RedisClient.FlushSendBuffer(); //receive expected results foreach (var queuedCommand in QueuedCommands) { queuedCommand.ProcessResult(); } ClosePipeline(); }
public void Flush() { try { // flush send buffers RedisClient.FlushSendBuffer(); //receive expected results foreach (var queuedCommand in QueuedCommands) { queuedCommand.ProcessResult(); } } finally { ClosePipeline(); RedisClient.AddTypeIdsRegisteredDuringPipeline(); } }
/// <summary> /// Issue exec command (not queued) /// </summary> private void Exec() { RedisClient.Exec(); RedisClient.FlushSendBuffer(); }