RSS-Bridge.rss-bridge/caches/NullCache.php
Marcin Morawski 17d7ccd7dd Fix PHP 8.4 deprecation
Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead
2025-07-30 17:37:48 +02:00

27 lines
405 B
PHP

<?php
declare(strict_types=1);
class NullCache implements CacheInterface
{
public function get(string $key, $default = null)
{
return $default;
}
public function set(string $key, $value, ?int $ttl = null): void
{
}
public function delete(string $key): void
{
}
public function clear(): void
{
}
public function prune(): void
{
}
}