| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function setWithHash($key, $value, $ttl, string $hash): bool |
||
| 30 | { |
||
| 31 | if ($this->set($key, $value, $ttl) === false) { |
||
| 32 | return false; |
||
| 33 | } |
||
| 34 | |||
| 35 | try { |
||
| 36 | Util::getFS()->touch($this->getHashFilePathname($key, $hash)); |
||
| 37 | } catch (Exception $e) { |
||
| 38 | $this->builder->getLogger()->warning($e->getMessage()); |
||
| 39 | |||
| 40 | return false; |
||
| 41 | } |
||
| 42 | |||
| 43 | return true; |
||
| 44 | } |
||
| 63 |