2016-09-05 18:05:19 +02:00
|
|
|
<?php
|
2022-07-01 15:10:30 +02:00
|
|
|
|
2016-09-10 20:41:11 +02:00
|
|
|
interface CacheInterface
|
|
|
|
{
|
2023-07-06 15:10:30 +02:00
|
|
|
public function setScope(string $scope): void;
|
2019-04-29 20:12:43 +02:00
|
|
|
|
2023-07-06 15:10:30 +02:00
|
|
|
public function setKey(array $key): void;
|
2019-04-29 20:12:43 +02:00
|
|
|
|
2023-07-19 05:05:49 +02:00
|
|
|
public function loadData(int $timeout = 86400);
|
2018-11-16 21:48:59 +01:00
|
|
|
|
2023-07-06 15:10:30 +02:00
|
|
|
public function saveData($data): void;
|
2018-11-16 21:48:59 +01:00
|
|
|
|
2023-07-05 17:37:21 +02:00
|
|
|
public function getTime(): ?int;
|
2018-11-16 21:48:59 +01:00
|
|
|
|
2023-07-19 05:05:49 +02:00
|
|
|
public function purgeCache(int $timeout = 86400): void;
|
2016-09-05 18:05:19 +02:00
|
|
|
}
|