chengkun
2025-09-15 3c9050e82e582414dc7b208c8283fe47be37eeba
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
 
namespace League\Flysystem\Cached;
 
use League\Flysystem\ReadInterface;
 
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
     */
    public function setComplete($dirname, $recursive);
 
    /**
     * Store the contents of a directory.
     *
     * @param string $directory
     * @param array  $contents
     * @param bool   $recursive
     */
    public function storeContents($directory, array $contents, $recursive);
 
    /**
     * Flush the cache.
     */
    public function flush();
 
    /**
     * Autosave trigger.
     */
    public function autosave();
 
    /**
     * Store the cache.
     */
    public function save();
 
    /**
     * Load the cache.
     */
    public function load();
 
    /**
     * Rename a file.
     *
     * @param string $path
     * @param string $newpath
     */
    public function rename($path, $newpath);
 
    /**
     * Copy a file.
     *
     * @param string $path
     * @param string $newpath
     */
    public function copy($path, $newpath);
 
    /**
     * Delete an object from cache.
     *
     * @param string $path object path
     */
    public function delete($path);
 
    /**
     * Delete all objects from from a directory.
     *
     * @param string $dirname directory path
     */
    public function deleteDir($dirname);
 
    /**
     * Update the metadata for an object.
     *
     * @param string $path     object path
     * @param array  $object   object metadata
     * @param bool   $autosave whether to trigger the autosave routine
     */
    public function updateObject($path, array $object, $autosave = false);
 
    /**
     * Store object hit miss.
     *
     * @param string $path
     */
    public function storeMiss($path);
}