-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathStorage.php
More file actions
45 lines (34 loc) · 755 Bytes
/
Storage.php
File metadata and controls
45 lines (34 loc) · 755 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Caching;
/**
* Cache storage.
*/
interface Storage
{
/**
* Read from cache.
*/
function read(string $key): mixed;
/**
* Prevents item reading and writing. Lock is released by write() or remove().
*/
function lock(string $key): void;
/**
* Writes item into the cache.
*/
function write(string $key, $data, array $dependencies): void;
/**
* Removes item from the cache.
*/
function remove(string $key): void;
/**
* Removes items from the cache by conditions.
*/
function clean(array $conditions): void;
}
class_exists(IStorage::class);