/**
* Execute all items in the work queue in a single transaction
*/
private function flushMulti()
{
$this->clientCmd('pipeline', function ($pipe) {
/* @var Pipeline $pipe */
while ($command = $this->unit_of_work->getWork()) {
$pipe->executeCommand($this->getPredisCommand($command));
}
});
}