@@ -69,7 +69,7 @@ Saving Cache Items
6969------------------
7070
7171The most common method to save cache items is
72- ``Psr\\ Cache\ \CacheItemPoolInterface::save ``, which stores the
72+ ``Psr\Cache\CacheItemPoolInterface::save ``, which stores the
7373item in the cache immediately (it returns ``true `` if the item was saved or
7474``false `` if some error occurred)::
7575
@@ -80,9 +80,9 @@ item in the cache immediately (it returns ``true`` if the item was saved or
8080
8181Sometimes you may prefer to not save the objects immediately in order to
8282increase the application performance. In those cases, use the
83- ``Psr\\ Cache\ \CacheItemPoolInterface::saveDeferred `` method to mark cache
83+ ``Psr\Cache\CacheItemPoolInterface::saveDeferred `` method to mark cache
8484items as "ready to be persisted" and then call to
85- ``Psr\\ Cache\ \CacheItemPoolInterface::commit `` method when you are ready
85+ ``Psr\Cache\CacheItemPoolInterface::commit `` method when you are ready
8686to persist them all::
8787
8888 // ...
@@ -103,22 +103,22 @@ Removing Cache Items
103103--------------------
104104
105105Cache Pools include methods to delete a cache item, some of them or all of them.
106- The most common is ``Psr\\ Cache\ \CacheItemPoolInterface::deleteItem ``,
106+ The most common is ``Psr\Cache\CacheItemPoolInterface::deleteItem ``,
107107which deletes the cache item identified by the given key (it returns ``true ``
108108when the item is successfully deleted or doesn't exist and ``false `` otherwise)::
109109
110110 // ...
111111 $isDeleted = $cache->deleteItem('user_'.$userId);
112112
113- Use the ``Psr\\ Cache\ \CacheItemPoolInterface::deleteItems `` method to
113+ Use the ``Psr\Cache\CacheItemPoolInterface::deleteItems `` method to
114114delete several cache items simultaneously (it returns ``true `` only if all the
115115items have been deleted, even when any or some of them don't exist)::
116116
117117 // ...
118118 $areDeleted = $cache->deleteItems(['category1', 'category2']);
119119
120120Finally, to remove all the cache items stored in the pool, use the
121- ``Psr\\ Cache\ \CacheItemPoolInterface::clear `` method (which returns ``true ``
121+ ``Psr\Cache\CacheItemPoolInterface::clear `` method (which returns ``true ``
122122when all items are successfully deleted)::
123123
124124 // ...
@@ -158,7 +158,7 @@ Pruning Cache Items
158158Some cache pools do not include an automated mechanism for pruning expired cache items.
159159For example, the :ref: `FilesystemAdapter <component-cache-filesystem-adapter >` cache
160160does not remove expired cache items *until an item is explicitly requested and determined to
161- be expired *, for example, via a call to ``Psr\\ Cache\ \CacheItemPoolInterface::getItem ``.
161+ be expired *, for example, via a call to ``Psr\Cache\CacheItemPoolInterface::getItem ``.
162162Under certain workloads, this can cause stale cache entries to persist well past their
163163expiration, resulting in a sizable consumption of wasted disk or memory space from excess,
164164expired cache items.
0 commit comments