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