| Total Complexity | 10 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class SimpleCacheStorage implements StorageInterface |
||
| 11 | 10 | { |
|
| 12 | public function __construct(private CacheInterface $cache) |
||
| 13 | 10 | { |
|
| 14 | } |
||
| 15 | 6 | ||
| 16 | public function saveIfNotExists(string $key, mixed $value, int $ttl): bool |
||
| 19 | } |
||
| 20 | 7 | ||
| 21 | public function saveCompareAndSwap(string $key, mixed $oldValue, mixed $newValue, int $ttl): bool |
||
| 24 | } |
||
| 25 | |||
| 26 | public function get(string $key): ?float |
||
| 41 |