1 | <?php |
||
20 | class XCache extends Cache |
||
21 | { |
||
22 | /** |
||
23 | * This will wipe out the entire cache's keys |
||
24 | * |
||
25 | * @return boolean The result of the clear operation. |
||
26 | * |
||
27 | * @since 1.0 |
||
28 | */ |
||
29 | public function clear() |
||
32 | |||
33 | /** |
||
34 | * Method to get a storage entry value from a key. |
||
35 | * |
||
36 | * @param string $key The storage entry identifier. |
||
37 | * |
||
38 | * @return CacheItemInterface |
||
39 | * |
||
40 | * @since 1.0 |
||
41 | */ |
||
42 | public function getItem($key) |
||
53 | |||
54 | /** |
||
55 | * Method to remove a storage entry for a key. |
||
56 | * |
||
57 | * @param string $key The storage entry identifier. |
||
58 | * |
||
59 | * @return boolean |
||
60 | * |
||
61 | * @since 1.0 |
||
62 | */ |
||
63 | public function deleteItem($key) |
||
73 | |||
74 | /** |
||
75 | * Persists a cache item immediately. |
||
76 | * |
||
77 | * @param CacheItemInterface $item The cache item to save. |
||
78 | * |
||
79 | * @return static The invoked object. |
||
80 | */ |
||
81 | public function save(CacheItemInterface $item) |
||
95 | |||
96 | /** |
||
97 | * Method to determine whether a storage entry has been set for a key. |
||
98 | * |
||
99 | * @param string $key The storage entry identifier. |
||
100 | * |
||
101 | * @return boolean |
||
102 | * |
||
103 | * @since 1.0 |
||
104 | */ |
||
105 | public function hasItem($key) |
||
109 | |||
110 | /** |
||
111 | * Test to see if the CacheItemPoolInterface is available |
||
112 | * |
||
113 | * @return boolean True on success, false otherwise |
||
114 | * |
||
115 | * @since __DEPLOY_VERSION__ |
||
116 | */ |
||
117 | public static function isSupported() |
||
122 | } |
||
123 |