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