| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function flush() |
||
| 29 | { |
||
| 30 | /* |
||
| 31 | * Both of these utility methods are protected in parent, because I just |
||
| 32 | * don't want to expose them to users. But I really want to use them |
||
| 33 | * here... I'll use reflection to access them - I shouldn't, but I have |
||
| 34 | * a decent test suite to protect me, should I forget about this and |
||
| 35 | * change the implementation of these methods. |
||
| 36 | */ |
||
| 37 | $reflection = new \ReflectionMethod($this->cache, 'APCuIterator'); |
||
| 38 | $reflection->setAccessible(true); |
||
| 39 | $iterator = $reflection->invoke($this->cache, '/^'.preg_quote($this->prefix, '/').'/', \APC_ITER_KEY); |
||
| 40 | |||
| 41 | $reflection = new \ReflectionMethod($this->cache, 'apcu_delete'); |
||
| 42 | $reflection->setAccessible(true); |
||
| 43 | |||
| 44 | return $reflection->invoke($this->cache, $iterator); |
||
| 45 | } |
||
| 47 |