| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class ApcuStorage implements StorageInterface |
||
| 10 | { |
||
| 11 | private const DEFAULT_FIX_PRECISION_RATE = 1000000; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param int $fixPrecisionRate |
||
| 15 | * floating point is not supported by apcu_cas of ACPu, so use it to improves precision. |
||
| 16 | */ |
||
| 17 | public function __construct( |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | public function saveIfNotExists(string $key, mixed $value, int $ttl): bool |
||
| 29 | } |
||
| 30 | |||
| 31 | public function saveCompareAndSwap(string $key, mixed $oldValue, mixed $newValue, int $ttl): bool |
||
| 36 | } |
||
| 37 | |||
| 38 | public function get(string $key): mixed |
||
| 48 |