mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-20 10:54:34 +03:00
caac7f572c
* fix: proper typehint on setScope * refactor: type hint setKey() * typehint
18 lines
No EOL
328 B
Markdown
18 lines
No EOL
328 B
Markdown
See `CacheInterface`.
|
|
|
|
```php
|
|
interface CacheInterface
|
|
{
|
|
public function setScope(string $scope): void;
|
|
|
|
public function setKey(array $key): void;
|
|
|
|
public function loadData();
|
|
|
|
public function saveData($data): void;
|
|
|
|
public function getTime(): ?int;
|
|
|
|
public function purgeCache(int $seconds): void;
|
|
}
|
|
``` |