fix: rewrite and improve caching (#3594)

This commit is contained in:
Dag 2023-09-10 21:50:15 +02:00 committed by GitHub
parent a786bbd4e0
commit 4b9f6f7e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 993 additions and 1169 deletions

View file

@ -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
{
}
}