File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
content/develop/clients/php Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,13 @@ require 'vendor/autoload.php';
5050
5151use Predis\Client as PredisClient;
5252
53- $r = new PredisClient();
53+ $r = new PredisClient([
54+ 'scheme' => 'tcp',
55+ 'host' => '127.0.0.1',
56+ 'port' => 6379,
57+ 'password' => '',
58+ 'database' => 0,
59+ ]);
5460```
5561
5662Store and retrieve a simple string to test the connection:
Original file line number Diff line number Diff line change @@ -27,7 +27,13 @@ require 'vendor/autoload.php';
2727
2828use Predis\Client as PredisClient;
2929
30- $r = new PredisClient();
30+ $r = new PredisClient([
31+ 'scheme' => 'tcp',
32+ 'host' => '127.0.0.1',
33+ 'port' => 6379,
34+ 'password' => '',
35+ 'database' => 0,
36+ ]);
3137```
3238
3339Store and retrieve a simple string to test the connection:
You can’t perform that action at this time.
0 commit comments