1 | <?php |
||
20 | class None extends AbstractCacheItemPool |
||
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 | 12 | 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 | 3 | public function getItem($key) |
|
47 | |||
48 | /** |
||
49 | * Method to remove a storage entry for a key. |
||
50 | * |
||
51 | * @param string $key The storage entry identifier. |
||
52 | * |
||
53 | * @return boolean |
||
54 | * |
||
55 | * @since 1.0 |
||
56 | */ |
||
57 | 2 | public function deleteItem($key) |
|
61 | |||
62 | /** |
||
63 | * Persists a cache item immediately. |
||
64 | * |
||
65 | * @param CacheItemInterface $item The cache item to save. |
||
66 | * |
||
67 | * @return static The invoked object. |
||
68 | */ |
||
69 | 3 | public function save(CacheItemInterface $item) |
|
73 | |||
74 | /** |
||
75 | * Method to determine whether a storage entry has been set for a key. |
||
76 | * |
||
77 | * @param string $key The storage entry identifier. |
||
78 | * |
||
79 | * @return boolean |
||
80 | * |
||
81 | * @since 1.0 |
||
82 | */ |
||
83 | 2 | public function hasItem($key) |
|
87 | |||
88 | /** |
||
89 | * Test to see if the CacheItemPoolInterface is available |
||
90 | * |
||
91 | * @return boolean True on success, false otherwise |
||
92 | * |
||
93 | * @since __DEPLOY_VERSION__ |
||
94 | */ |
||
95 | public static function isSupported() |
||
99 | } |
||
100 |