1 | <?php |
||
29 | class Driver_None extends Base |
||
30 | { |
||
31 | /** |
||
32 | * Keep cache content for current request |
||
33 | **/ |
||
34 | private $_history = []; |
||
|
|||
35 | |||
36 | /** |
||
37 | * Clears the cache content |
||
38 | * |
||
39 | * @return boolean |
||
40 | **/ |
||
41 | |||
42 | public function clear() |
||
48 | |||
49 | /** |
||
50 | * Removes a cached key |
||
51 | * |
||
52 | * @param string $key Name of the key |
||
53 | * @param int $ttl Time to life used for the key |
||
54 | * |
||
55 | * @return boolean |
||
56 | **/ |
||
57 | |||
58 | public function delete($key, $ttl = 0) |
||
64 | |||
65 | /** |
||
66 | * Returns a formatted array with statistics |
||
67 | * |
||
68 | * @return array |
||
69 | **/ |
||
70 | |||
71 | public function info() |
||
82 | |||
83 | /** |
||
84 | * Returns a formatted array with all keys and additional information |
||
85 | * |
||
86 | * @return array |
||
87 | **/ |
||
88 | |||
89 | public function keys() |
||
105 | |||
106 | /** |
||
107 | * Fetches the desired key |
||
108 | * |
||
109 | * @param string $key Name of the key |
||
110 | * @param int $ttl Time to life used for the key |
||
111 | * |
||
112 | * @return array |
||
113 | **/ |
||
114 | |||
115 | public function load($key, $ttl = 0) |
||
123 | |||
124 | /** |
||
125 | * Stores the key with its value in the cache |
||
126 | * |
||
127 | * @param string $key Name of the key |
||
128 | * @param array $value Content to be stored |
||
129 | * @param int $ttl Time to life used for the key |
||
130 | * |
||
131 | * @return boolean |
||
132 | **/ |
||
133 | |||
134 | public function save($key, $value, $ttl = 0) |
||
144 | } |
||
145 |