You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:returns: New value on success, ``false`` on failure
204
+
:rtype: mixed
205
205
206
-
.. literalinclude:: caching/008.php
206
+
Performs atomic decrementation of a raw stored value.
207
207
208
-
.. php:method:: clean()
208
+
Example:
209
209
210
-
:returns: ``true`` on success, ``false`` on failure
211
-
:rtype: bool
210
+
.. literalinclude:: caching/008.php
212
211
213
-
This method will 'clean' the entire cache. If the deletion of the
214
-
cache files fails, the method will return false.
212
+
.. php:method:: clean()
215
213
216
-
Example:
214
+
:returns: ``true`` on success, ``false`` on failure
215
+
:rtype: bool
217
216
218
-
.. literalinclude:: caching/009.php
217
+
This method will 'clean' the entire cache. If the deletion of the
218
+
cache files fails, the method will return false.
219
219
220
-
.. php:method:: getCacheInfo()
220
+
Example:
221
221
222
-
:returns: Information on the entire cache database
223
-
:rtype: mixed
222
+
.. literalinclude:: caching/009.php
224
223
225
-
This method will return information on the entire cache.
224
+
.. php:method:: getCacheInfo()
226
225
227
-
Example:
226
+
:returns: Information on the entire cache database
227
+
:rtype: mixed
228
228
229
-
.. literalinclude:: caching/010.php
229
+
This method will return information on the entire cache.
230
230
231
-
.. note:: The information returned and the structure of the data is dependent
232
-
on which adapter is being used.
231
+
Example:
233
232
234
-
.. php:method:: getMetadata(string $key)
233
+
.. literalinclude:: caching/010.php
235
234
236
-
:param string $key: Cache item name
237
-
:returns: Metadata for the cached item. ``null`` for missing items, or an array with at least the "expire" key for absolute epoch expiry (``null`` for never expires).
238
-
:rtype: array|null
235
+
.. note:: The information returned and the structure of the data is dependent
236
+
on which adapter is being used.
239
237
240
-
This method will return detailed information on a specific item in the
241
-
cache.
238
+
.. php:method:: getMetadata(string $key)
242
239
243
-
Example:
240
+
:param string $key: Cache item name
241
+
:returns: Metadata for the cached item. ``null`` for missing items, or an array with at least the "expire" key for absolute epoch expiry (``null`` for never expires).
242
+
:rtype: array|null
244
243
245
-
.. literalinclude:: caching/011.php
244
+
This method will return detailed information on a specific item in the
245
+
cache.
246
246
247
-
.. note:: The information returned and the structure of the data is dependent
248
-
on which adapter is being used. Some adapters (File, Memcached, Wincache)
0 commit comments