1 | <?php |
||
12 | class ApcObject { |
||
13 | |||
14 | /** |
||
15 | * Gets a cached variable |
||
16 | * |
||
17 | * @param string $name |
||
18 | * |
||
19 | * @return mixed |
||
20 | */ |
||
21 | public function get($name) { |
||
24 | |||
25 | /** |
||
26 | * Flushes APC cache |
||
27 | * |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function flush() { |
||
33 | |||
34 | /** |
||
35 | * Deletes specified value from cache |
||
36 | * |
||
37 | * @param string $name |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function delete($name) { |
||
44 | |||
45 | /** |
||
46 | * Stores a value in cache |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @param mixed $val |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function store($name, $val) { |
||
54 | return apc_store($name, $val); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Gets cache info |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function info() { |
||
65 | |||
66 | } |
||
67 |