| 1 | <?php |
||
| 11 | class SymfonyCache implements HandlerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \Symfony\Component\Cache\Adapter\AdapterInterface |
||
| 15 | */ |
||
| 16 | protected $cache; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $timeToLive; |
||
| 22 | |||
| 23 | public function __construct(AdapterInterface $cache, int $timeToLive = 3600) |
||
| 28 | |||
| 29 | public function has(string $cacheKey): bool |
||
| 37 | |||
| 38 | public function get(string $cacheKey): array |
||
| 46 | |||
| 47 | public function set(string $cacheKey, array $data): void |
||
| 57 | |||
| 58 | protected function computeKey(string $cacheKey): string |
||
| 62 | } |
||
| 63 |