Conditions | 3 |
Paths | 6 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct(array $connections, CacheAdapter $next = null) |
||
20 | { |
||
21 | $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null: $next; |
||
22 | |||
23 | try { |
||
24 | $this->connected = true; |
||
25 | $this->redis = new Client($connections); |
||
26 | $this->redis->connect(); |
||
27 | } catch (\Exception $e) { |
||
28 | $this->connected = false; |
||
29 | } |
||
30 | } |
||
31 | |||
42 |