Skip to content

Commit edbca16

Browse files
committed
docs: update sample config
1 parent e0b000d commit edbca16

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

system/Cache/Handlers/PredisHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class PredisHandler extends BaseHandler
3636
* host: string,
3737
* password: string|null,
3838
* port: int,
39-
* async: bool
40-
* persistent: bool
39+
* async: bool,
40+
* persistent: bool,
4141
* timeout: int
4242
* }
4343
*/

user_guide_src/source/libraries/caching/014.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ class Cache extends BaseConfig
99
// ...
1010

1111
public $redis = [
12-
'host' => '127.0.0.1',
13-
'password' => null,
14-
'port' => 6379,
15-
'timeout' => 0,
16-
'database' => 0,
12+
'scheme' => 'tcp',
13+
'host' => '127.0.0.1',
14+
'password' => null,
15+
'port' => 6379,
16+
'async' => false,
17+
'persistent' => false,
18+
'timeout' => 0,
19+
'database' => 0,
1720
];
1821

1922
// ...

0 commit comments

Comments
 (0)