forked from thephpleague/flysystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCacheInterface.php
More file actions
87 lines (76 loc) · 1.78 KB
/
CacheInterface.php
File metadata and controls
87 lines (76 loc) · 1.78 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
namespace League\Flysystem;
interface CacheInterface extends ReadInterface
{
/**
* Check whether the directory listing of a given directory is complete
*
* @param string $dirname
* @param bool $recursive
* @return bool
*/
public function isComplete($dirname, $recursive);
/**
* Set a directory to completely listed
*
* @param string $dirname
* @param bool $recursive
* @return $this
*/
public function setComplete($dirname, $recursive);
/**
* Store the contents of a directory
*
* @param string $directory
* @param array $contents
* @param bool $recursive
* @return array contents
*/
public function storeContents($directory, array $contents, $recursive);
/**
* Flush the cache
*
* @return void
*/
public function flush();
/**
* Autosave trigger
*
* @return void
*/
public function autosave();
/**
* Store the cache
*
* @return void
*/
public function save();
/**
* Load the cache
*
* @return void
*/
public function load();
/**
* Delete an object from cache
*
* @param string $path object path
* @return $this
*/
public function delete($path);
/**
* Update the metadata for an object
*
* @param string $path object path
* @param array $object object metadata
* @param boolean $autosave whether to trigger the autosave routine
*/
public function updateObject($path, array $object, $autosave = false);
/**
* Store object hit miss
*
* @param string $path
* @return $this
*/
public function storeMiss($path);
}