mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
fix: rewrite and improve caching (#3594)
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user