Skip to content

Commit 963d6fb

Browse files
authored
Adding persistent to predis
1 parent 7febe07 commit 963d6fb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Factory/PredisFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public function getAdapter(array $config)
3535
if (empty($dsn)) {
3636
$client = new Client(
3737
[
38-
'scheme' => $config['scheme'],
39-
'host' => $config['host'],
40-
'port' => $config['port'],
38+
'scheme' => $config['scheme'],
39+
'host' => $config['host'],
40+
'port' => $config['port'],
41+
'persistent' => isset($config['persistent']) ? $config['persistent'] : false
4142
]
4243
);
4344
} else {

0 commit comments

Comments
 (0)