Untitled

mail@pastecode.io avatar
unknown
php
5 months ago
320 B
11
Indexable
Never
<?php

class NullCache implements CacheInterface
{

    public function has(string $key): bool
    {
        return false;
    }

    public function get(string $key): mixed
    {
        // drzim se psr-6
        return null;
    }

    public function set(string $key, mixed $value): void
    {
        // void
    }
}