Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class SimpleCacheStorage implements StorageInterface |
||
10 | { |
||
11 | private CacheInterface $cache; |
||
12 | |||
13 | 9 | public function __construct(CacheInterface $cache) |
|
16 | 9 | } |
|
17 | |||
18 | 6 | public function save(string $key, $value, int $ttl): void |
|
21 | 6 | } |
|
22 | |||
23 | 7 | public function get(string $key, $default = null) |
|
28 |