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