mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +02:00
fix: rewrite and improve caching (#3594)
This commit is contained in:
parent
a786bbd4e0
commit
4b9f6f7e53
45 changed files with 993 additions and 1169 deletions
|
@ -4,28 +4,24 @@ declare(strict_types=1);
|
|||
|
||||
class NullCache implements CacheInterface
|
||||
{
|
||||
public function setScope(string $scope): void
|
||||
public function get(string $key, $default = null)
|
||||
{
|
||||
return $default;
|
||||
}
|
||||
|
||||
public function set(string $key, $value, int $ttl = null): void
|
||||
{
|
||||
}
|
||||
|
||||
public function setKey(array $key): void
|
||||
public function delete(string $key): void
|
||||
{
|
||||
}
|
||||
|
||||
public function loadData(int $timeout = 86400)
|
||||
public function clear(): void
|
||||
{
|
||||
}
|
||||
|
||||
public function saveData($data): void
|
||||
{
|
||||
}
|
||||
|
||||
public function getTime(): ?int
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function purgeCache(int $timeout = 86400): void
|
||||
public function prune(): void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue