aboutsummaryrefslogtreecommitdiff
path: root/docs/07_Cache_API/02_CacheInterface.md
blob: 3e71237dcac1095c3de6d514694eefbd551e0f4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
See `CacheInterface`.

```php
interface CacheInterface
{
    public function get(string $key, $default = null);

    public function set(string $key, $value, int $ttl = null): void;

    public function delete(string $key): void;

    public function clear(): void;

    public function prune(): void;
}
```