Untitled

mail@pastecode.io avatar
unknown
php
a year ago
320 B
12
Indexable
<?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
    }
}