20 $this->readOnly = $options[
'readOnly'] ??
false;
21 $this->prefix = $options[
'keyPrefix'] ??
'BX';
22 $this->exclusiveLock = $options[
'exclusiveLock'] ??
false;
24 $host = (string)($options[
'host'] ??
'127.0.0.1');
25 $port = (int)($options[
'port'] ?? 6379);
26 if (str_starts_with($host,
'unix://'))
32 $connectionPool->setConnectionParameters(self::SESSION_REDIS_CONNECTION, [
33 'className' => RedisConnection::class,
36 'servers' => $options[
'servers'] ?? [],
37 'serializer' => $options[
'serializer'] ??
null,
38 'failover' => $options[
'failover'] ??
null,
39 'timeout' => $options[
'timeout'] ??
null,
40 'readTimeout' => $options[
'readTimeout'] ??
null,
41 'persistent' => $options[
'persistent'] ??
null,