CacheInterface
last analyzed

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 95

13 Methods

Rating   Name   Duplication   Size   Complexity  
isComplete() 0 1 ?
setComplete() 0 1 ?
storeContents() 0 1 ?
flush() 0 1 ?
autosave() 0 1 ?
save() 0 1 ?
load() 0 1 ?
rename() 0 1 ?
copy() 0 1 ?
delete() 0 1 ?
deleteDir() 0 1 ?
updateObject() 0 1 ?
storeMiss() 0 1 ?
1
<?php
2
3
namespace League\Flysystem\Cached;
4
5
use League\Flysystem\ReadInterface;
6
7
interface CacheInterface extends ReadInterface
8
{
9
    /**
10
     * Check whether the directory listing of a given directory is complete.
11
     *
12
     * @param string $dirname
13
     * @param bool   $recursive
14
     *
15
     * @return bool
16
     */
17
    public function isComplete($dirname, $recursive);
18
19
    /**
20
     * Set a directory to completely listed.
21
     *
22
     * @param string $dirname
23
     * @param bool   $recursive
24
     */
25
    public function setComplete($dirname, $recursive);
26
27
    /**
28
     * Store the contents of a directory.
29
     *
30
     * @param string $directory
31
     * @param array  $contents
32
     * @param bool   $recursive
33
     */
34
    public function storeContents($directory, array $contents, $recursive);
35
36
    /**
37
     * Flush the cache.
38
     */
39
    public function flush();
40
41
    /**
42
     * Autosave trigger.
43
     */
44
    public function autosave();
45
46
    /**
47
     * Store the cache.
48
     */
49
    public function save();
50
51
    /**
52
     * Load the cache.
53
     */
54
    public function load();
55
56
    /**
57
     * Rename a file.
58
     *
59
     * @param string $path
60
     * @param string $newpath
61
     */
62
    public function rename($path, $newpath);
63
64
    /**
65
     * Copy a file.
66
     *
67
     * @param string $path
68
     * @param string $newpath
69
     */
70
    public function copy($path, $newpath);
71
72
    /**
73
     * Delete an object from cache.
74
     *
75
     * @param string $path object path
76
     */
77
    public function delete($path);
78
79
    /**
80
     * Delete all objects from from a directory.
81
     *
82
     * @param string $dirname directory path
83
     */
84
    public function deleteDir($dirname);
85
86
    /**
87
     * Update the metadata for an object.
88
     *
89
     * @param string $path     object path
90
     * @param array  $object   object metadata
91
     * @param bool   $autosave whether to trigger the autosave routine
92
     */
93
    public function updateObject($path, array $object, $autosave = false);
94
95
    /**
96
     * Store object hit miss.
97
     *
98
     * @param string $path
99
     */
100
    public function storeMiss($path);
101
}
102