1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-04-08 09:46:11 +03:00
rss-bridge/docs/07_Cache_API/02_CacheInterface.md
Dag caac7f572c
refacor: improve cache interface ()
* fix: proper typehint on setScope

* refactor: type hint setKey()

* typehint
2023-07-06 15:10:30 +02:00

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;
}
```