1 | <?php |
||
21 | class Runtime extends AbstractCacheItemPool |
||
|
|||
22 | { |
||
23 | /** |
||
24 | * Database of cached items, we use ArrayObject so it can be easily passed by reference |
||
25 | * |
||
26 | * @var \ArrayObject |
||
27 | * @since __DEPLOY_VERSION__ |
||
28 | */ |
||
29 | protected $db; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param mixed $options An options array, or an object that implements \ArrayAccess |
||
35 | * |
||
36 | * @since __DEPLOY_VERSION__ |
||
37 | */ |
||
38 | 18 | public function __construct($options = array()) |
|
44 | |||
45 | /** |
||
46 | * This will wipe out the entire cache's keys |
||
47 | * |
||
48 | * @return boolean True if the pool was successfully cleared. False if there was an error. |
||
49 | * |
||
50 | * @since 1.0 |
||
51 | */ |
||
52 | 18 | public function clear() |
|
60 | |||
61 | /** |
||
62 | * Returns a Cache Item representing the specified key. |
||
63 | * |
||
64 | * @param string $key The key for which to return the corresponding Cache Item. |
||
65 | * |
||
66 | * @return CacheItemInterface The corresponding Cache Item. |
||
67 | * |
||
68 | * @since __DEPLOY_VERSION__ |
||
69 | */ |
||
70 | 11 | public function getItem($key) |
|
81 | |||
82 | /** |
||
83 | * Removes the item from the pool. |
||
84 | * |
||
85 | * @param string $key The key to delete. |
||
86 | * |
||
87 | * @return boolean True if the item was successfully removed. False if there was an error. |
||
88 | * |
||
89 | * @since __DEPLOY_VERSION__ |
||
90 | */ |
||
91 | 4 | public function deleteItem($key) |
|
101 | |||
102 | /** |
||
103 | * Persists a cache item immediately. |
||
104 | * |
||
105 | * @param CacheItemInterface $item The cache item to save. |
||
106 | * |
||
107 | * @return boolean True if the item was successfully persisted. False if there was an error. |
||
108 | * |
||
109 | * @since __DEPLOY_VERSION__ |
||
110 | */ |
||
111 | 15 | public function save(CacheItemInterface $item) |
|
117 | |||
118 | /** |
||
119 | * Confirms if the cache contains specified cache item. |
||
120 | * |
||
121 | * @param string $key The key for which to check existence. |
||
122 | * |
||
123 | * @return boolean True if item exists in the cache, false otherwise. |
||
124 | * |
||
125 | * @since 1.0 |
||
126 | */ |
||
127 | 15 | public function hasItem($key) |
|
131 | |||
132 | /** |
||
133 | * Test to see if the CacheItemPoolInterface is available |
||
134 | * |
||
135 | * @return boolean True on success, false otherwise |
||
136 | * |
||
137 | * @since __DEPLOY_VERSION__ |
||
138 | */ |
||
139 | public static function isSupported(): bool |
||
143 | } |
||
144 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.