Skip to content

Commit 4713f69

Browse files
DOC-4520 remove defaults from basic connection example
1 parent 3b82c13 commit 4713f69

File tree

1 file changed

+2
-8
lines changed
  • content/develop/connect/clients

1 file changed

+2
-8
lines changed

content/develop/connect/clients/php.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ require 'vendor/autoload.php';
4949

5050
use Predis\Client as PredisClient;
5151

52-
$r = new PredisClient([
53-
'scheme' => 'tcp',
54-
'host' => '127.0.0.1',
55-
'port' => 6379,
56-
'password' => '',
57-
'database' => 0,
58-
]);
52+
$r = new PredisClient();
5953
```
6054

6155
Store and retrieve a simple string to test the connection:
@@ -78,7 +72,7 @@ $r->hset('user-session:123', 'company', 'Redis');
7872
$r->hset('user-session:123', 'age', 29);
7973

8074
echo var_export($r->hgetall('user-session:123')), PHP_EOL;
81-
/*
75+
/* >>>
8276
array (
8377
'name' => 'John',
8478
'surname' => 'Smith',

0 commit comments

Comments
 (0)