| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | class CacheFacade extends AbstractFacade |
||
| 21 | { |
||
| 22 | public function get($key, $default = null): mixed |
||
| 23 | { |
||
| 24 | //ToDo: Move str_replace to Business + add cache disable option means has = always false |
||
| 25 | return $this->getFactory()->createSimpleCache()->get(\str_replace('/', '', $key), $default); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function has($key): bool |
||
| 31 | } |
||
| 32 | |||
| 33 | public function set($key, $value, $ttl = 600): bool |
||
| 38 |