@@ -16,15 +16,15 @@ discard block |
||
16 | 16 | // Class variable {{{ |
17 | 17 | private static $_defaultConfig = [ |
18 | 18 | // 'connect' paramater |
19 | - 'host' => '127.0.0.1', //can be a host, or the path to a unix domain socket |
|
19 | + 'host' => '127.0.0.1', //can be a host, or the path to a unix domain socket |
|
20 | 20 | 'port' => 6379, |
21 | - 'timeout' => 1.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
22 | - 'reserved' => null, //should be NULL if retry_interval is specified |
|
21 | + 'timeout' => 1.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
22 | + 'reserved' => null, //should be NULL if retry_interval is specified |
|
23 | 23 | 'retry_interval' => null, //value in milliseconds |
24 | - 'read_timeout' => 1.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
24 | + 'read_timeout' => 1.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
25 | 25 | |
26 | 26 | // 'pconnect' paramater |
27 | - 'persistent_id' => '', //identity for the requested persistent connection |
|
27 | + 'persistent_id' => '', //identity for the requested persistent connection |
|
28 | 28 | |
29 | 29 | // 'auth' paramater |
30 | 30 | 'password' => null, |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | 'serializer' => \Redis::SERIALIZER_NONE, |
34 | 34 | |
35 | 35 | // 'connect' or 'pconnect' |
36 | - 'persistent' => false, //default is connect |
|
36 | + 'persistent' => false, //default is connect |
|
37 | 37 | ]; |
38 | 38 | //}}} |
39 | 39 |
@@ -15,15 +15,15 @@ |
||
15 | 15 | { |
16 | 16 | protected $config; |
17 | 17 | private static $_defaultConfig = [ |
18 | - 'host' => null, //can be a host, or the path to a unix domain socket |
|
18 | + 'host' => null, //can be a host, or the path to a unix domain socket |
|
19 | 19 | 'port' => 6379, |
20 | - 'timeout' => 0.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
21 | - 'reserved' => null, //should be NULL if retry_interval is specified |
|
20 | + 'timeout' => 0.0, //value in seconds (optional, default is 0 meaning unlimited) |
|
21 | + 'reserved' => null, //should be NULL if retry_interval is specified |
|
22 | 22 | 'retry_interval' => null, //value in milliseconds |
23 | - 'persistent_id' => '', //identity for the requested persistent connection |
|
23 | + 'persistent_id' => '', //identity for the requested persistent connection |
|
24 | 24 | 'password' => null, |
25 | 25 | 'serializer' => \Redis::SERIALIZER_NONE, |
26 | - 'persistent' => false, //default is connect |
|
26 | + 'persistent' => false, //default is connect |
|
27 | 27 | ]; |
28 | 28 | |
29 | 29 | public function __construct(array $config) //{{{ |