Skip to content
Snippets Groups Projects
Commit e54fc57d authored by Sébastien Kus's avatar Sébastien Kus
Browse files

Add possibility to customize redis options in PRedisClientManager

parent c08d6038
No related branches found
Tags 2.0.1
No related merge requests found
......@@ -19,6 +19,7 @@ class PRedisClientManager implements PoolManagerInterface
*/
public function __construct(
protected array|string $config,
protected array|null $options = null
) {}
/**
......@@ -27,7 +28,7 @@ class PRedisClientManager implements PoolManagerInterface
*/
public function create(): Client
{
$client = new Client($this->config);
$client = new Client($this->config, $this->options);
$client->connect();
return $client;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment