Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1294 lars 1
<?php
2
 
3
namespace Spatie\Ignition\Solutions\OpenAi;
4
 
5
use Psr\SimpleCache\CacheInterface;
6
 
7
class DummyCache implements CacheInterface
8
{
9
    public function get(string $key, mixed $default = null): mixed
10
    {
11
        return null;
12
    }
13
 
14
    public function set(string $key, mixed $value, \DateInterval|int|null $ttl = null): bool
15
    {
16
        return true;
17
    }
18
 
19
    public function delete(string $key): bool
20
    {
21
        return true;
22
    }
23
 
24
    public function clear(): bool
25
    {
26
        return true;
27
    }
28
 
29
    public function getMultiple(iterable $keys, mixed $default = null): iterable
30
    {
31
        return [];
32
    }
33
 
34
    public function setMultiple(iterable $values, \DateInterval|int|null $ttl = null): bool
35
    {
36
        return true;
37
    }
38
 
39
    public function deleteMultiple(iterable $keys): bool
40
    {
41
        return true;
42
    }
43
 
44
    public function has(string $key): bool
45
    {
46
        return false;
47
    }
48
}