2023-07-06 16:10:30 +03:00
|
|
|
See `CacheInterface`.
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
```php
|
|
|
|
interface CacheInterface
|
|
|
|
{
|
|
|
|
public function setScope(string $scope): void;
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
public function setKey(array $key): void;
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
public function loadData();
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
public function saveData($data): void;
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
public function getTime(): ?int;
|
2022-03-22 23:33:29 +03:00
|
|
|
|
2023-07-06 16:10:30 +03:00
|
|
|
public function purgeCache(int $seconds): void;
|
2022-03-22 23:33:29 +03:00
|
|
|
}
|
2023-07-06 16:10:30 +03:00
|
|
|
```
|