| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function create(array $options): void |
||
| 40 | { |
||
| 41 | $redis = new \Redis(); |
||
| 42 | $redis->connect( |
||
| 43 | $options['host'], |
||
| 44 | $options['port'] ?? 6379, |
||
| 45 | $options['timeout'] ?? 0.00, |
||
| 46 | $options['reserved'] ?? null, |
||
| 47 | $options['retryInterval'] ?? 0, |
||
| 48 | $options['readTimeout'] ?? 0.00 |
||
| 49 | ); |
||
| 50 | $this->setStorage(new RedisCachePool($redis)); |
||
| 51 | } |
||
| 53 |