mirror of
https://github.com/predis/predis.git
synced 2026-09-05 15:42:31 +00:00
Updated the README with the new parameters for Predis\Client. The old signature Predis\Client(, ) is now completely deprecated and it does not work anymore.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ running on the localhost on the default port:
|
||||
Pipelining helps with performances when there is the need to issue many commands
|
||||
to a server in one go:
|
||||
|
||||
$redis = new Predis\Client('10.0.0.1', 6379);
|
||||
$redis = new Predis\Client('redis://10.0.0.1:6379/');
|
||||
$replies = $redis->pipeline(function($pipe) {
|
||||
$pipe->ping();
|
||||
$pipe->incrby('counter', 10);
|
||||
|
||||
Reference in New Issue
Block a user