| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function clear() |
||
| 29 | { |
||
| 30 | $this->redis->setOption(\Redis::OPT_SERIALIZER, \Redis::SERIALIZER_NONE); |
||
| 31 | $prefix = $this->redis->getOption(\Redis::OPT_PREFIX); |
||
| 32 | $offset = strlen($prefix); |
||
| 33 | |||
| 34 | $keys = $this->redis->keys('*'); |
||
| 35 | foreach ($keys as $key) { |
||
| 36 | $this->redis->del(substr($key, $offset)); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 54 |