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';
50
50
51
51
use Predis\Client as PredisClient;
52
52
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
+ ]);
54
60
```
55
61
56
62
Store 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';
27
27
28
28
use Predis\Client as PredisClient;
29
29
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
+ ]);
31
37
```
32
38
33
39
Store and retrieve a simple string to test the connection:
You can’t perform that action at this time.
0 commit comments