Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function __construct(Memcached $memcached, string $keyPrefix = '') |
||
17 | { |
||
18 | if ($memcached->getOption(Memcached::OPT_BINARY_PROTOCOL) !== 1) { |
||
19 | throw new \RuntimeException('Memcached "OPT_BINARY_PROTOCOL" option should be set to "true".'); |
||
20 | } |
||
21 | |||
22 | parent::__construct($keyPrefix); |
||
23 | |||
24 | $this->memcached = $memcached; |
||
25 | } |
||
26 | |||
62 |