| Total Complexity | 8 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class MemoryCache extends CacheDriverAbstract{ |
||
| 18 | |||
| 19 | protected array $cache = []; |
||
| 20 | |||
| 21 | /** @inheritdoc */ |
||
| 22 | public function get($key, $default = null){ |
||
| 35 | } |
||
| 36 | |||
| 37 | /** @inheritdoc */ |
||
| 38 | public function set($key, $value, $ttl = null):bool{ |
||
| 47 | } |
||
| 48 | |||
| 49 | /** @inheritdoc */ |
||
| 50 | public function delete($key):bool{ |
||
| 51 | unset($this->cache[$this->checkKey($key)]); |
||
| 52 | |||
| 53 | return true; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** @inheritdoc */ |
||
| 57 | public function clear():bool{ |
||
| 61 | } |
||
| 62 | |||
| 64 |