Interacting With Redis: Pipelining Commands

Should be used when you need to send many commands to the server in one operation.

Redis::pipeline(function ($pipe) {
    for ($i = 0; $i < 1000; $i++) {
        $pipe->set("key:$i", $i);
    }
});

Interacting With Redis: Pipelining Commands — Structure map

Clickable & Draggable!

Interacting With Redis: Pipelining Commands — Related pages: