1 | <?php |
||
10 | class Filesystem implements CacheInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ReactFilesystem |
||
14 | */ |
||
15 | protected $filesystem; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $path; |
||
21 | |||
22 | /** |
||
23 | * filesystem constructor. |
||
24 | * @param ReactFilesystem $filesystem |
||
25 | * @param string $path |
||
26 | */ |
||
27 | 6 | public function __construct(ReactFilesystem $filesystem, $path) |
|
32 | |||
33 | /** |
||
34 | * @param string $key |
||
35 | * @return PromiseInterface |
||
36 | */ |
||
37 | 2 | public function get($key) |
|
44 | |||
45 | /** |
||
46 | * @param string $key |
||
47 | * @param mixed $value |
||
48 | */ |
||
49 | 2 | public function set($key, $value) |
|
65 | |||
66 | /** |
||
67 | * @param string $key |
||
68 | */ |
||
69 | 2 | public function remove($key) |
|
76 | |||
77 | /** |
||
78 | * @param $key |
||
79 | * @return FileInterface |
||
80 | */ |
||
81 | 6 | protected function getFile($key) |
|
85 | } |
||
86 |