diff --git a/docs/en/reference/caching.rst b/docs/en/reference/caching.rst index a008aa558..1e87efaff 100644 --- a/docs/en/reference/caching.rst +++ b/docs/en/reference/caching.rst @@ -211,49 +211,6 @@ By Cache ID delete('my_array'); -You can also pass wild cards to the ``delete()`` method and it will -return an array of IDs that were matched and deleted. - -.. code-block:: php - - delete('users_*'); - -By Regular Expression -^^^^^^^^^^^^^^^^^^^^^ - -If you need a little more control than wild cards you can use a PHP -regular expression to delete cache entries. - -.. code-block:: php - - deleteByRegex('/users_.*/'); - -By Prefix -^^^^^^^^^ - -Because regular expressions are kind of slow, if simply deleting by -a prefix or suffix is sufficient, it is recommended that you do -that instead of using a regular expression because it will be much -faster if you have many cache entries. - -.. code-block:: php - - deleteByPrefix('users_'); - -By Suffix -^^^^^^^^^ - -Just like we did above with the prefix you can do the same with a -suffix. - -.. code-block:: php - - deleteBySuffix('_my_account'); - All ^^^ @@ -265,17 +222,6 @@ the ``deleteAll()`` method. deleteAll(); -Counting -~~~~~~~~ - -If you want to count how many entries are stored in the cache -driver instance you can use the ``count()`` method. - -.. code-block:: php - - count(); - Namespaces ~~~~~~~~~~