| 1 | <?php |
||
| 16 | class XCacheStore extends CacheStore |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $prefix; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $prefix |
||
| 25 | */ |
||
| 26 | public function __construct(string $prefix = 'spiral:') |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function isAvailable(): bool |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function has(string $name): bool |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function get(string $name) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function set(string $name, $data, $ttl = null) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function delete(string $name) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritdoc} |
||
| 73 | */ |
||
| 74 | public function inc(string $name, int $delta = 1): int |
||
| 78 | |||
| 79 | /** |
||
| 80 | * {@inheritdoc} |
||
| 81 | */ |
||
| 82 | public function dec(string $name, int $delta = 1): int |
||
| 86 | |||
| 87 | /** |
||
| 88 | * {@inheritdoc} |
||
| 89 | * |
||
| 90 | * @throws \ErrorException |
||
| 91 | */ |
||
| 92 | public function clear() |
||
| 96 | } |
||
| 97 |