aboutsummaryrefslogtreecommitdiff
path: root/caches/NullCache.php
blob: 2549b117d2e4b030209ab9f5f4c3ebf94ca43de6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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
    {
    }
}