2023-02-15 23:22:37 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
class NullCache implements CacheInterface
|
|
|
|
{
|
2023-09-10 22:50:15 +03:00
|
|
|
public function get(string $key, $default = null)
|
2023-02-15 23:22:37 +03:00
|
|
|
{
|
2023-09-10 22:50:15 +03:00
|
|
|
return $default;
|
2023-02-15 23:22:37 +03:00
|
|
|
}
|
|
|
|
|
2023-09-10 22:50:15 +03:00
|
|
|
public function set(string $key, $value, int $ttl = null): void
|
2023-02-15 23:22:37 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-09-10 22:50:15 +03:00
|
|
|
public function delete(string $key): void
|
2023-02-15 23:22:37 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-09-10 22:50:15 +03:00
|
|
|
public function clear(): void
|
2023-02-15 23:22:37 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-09-10 22:50:15 +03:00
|
|
|
public function prune(): void
|
2023-02-15 23:22:37 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|