mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 16:17:28 +02:00
fix: rewrite and improve caching (#3594)
This commit is contained in:
@@ -2,15 +2,13 @@
|
||||
|
||||
interface CacheInterface
|
||||
{
|
||||
public function setScope(string $scope): void;
|
||||
public function get(string $key, $default = null);
|
||||
|
||||
public function setKey(array $key): void;
|
||||
public function set(string $key, $value, int $ttl = null): void;
|
||||
|
||||
public function loadData(int $timeout = 86400);
|
||||
public function delete(string $key): void;
|
||||
|
||||
public function saveData($data): void;
|
||||
public function clear(): void;
|
||||
|
||||
public function getTime(): ?int;
|
||||
|
||||
public function purgeCache(int $timeout = 86400): void;
|
||||
public function prune(): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user