@@ -115,7 +115,7 @@ Saving Cache Items
115115~~~~~~~~~~~~~~~~~~
116116
117117The most common method to save cache items is
118- ``Psr\\ Cache\ \CacheItemPoolInterface::save ``, which stores the
118+ ``Psr\Cache\CacheItemPoolInterface::save ``, which stores the
119119item in the cache immediately (it returns ``true `` if the item was saved or
120120``false `` if some error occurred)::
121121
@@ -126,9 +126,9 @@ item in the cache immediately (it returns ``true`` if the item was saved or
126126
127127Sometimes you may prefer to not save the objects immediately in order to
128128increase the application performance. In those cases, use the
129- ``Psr\\ Cache\ \CacheItemPoolInterface::saveDeferred `` method to mark cache
129+ ``Psr\Cache\CacheItemPoolInterface::saveDeferred `` method to mark cache
130130items as "ready to be persisted" and then call to
131- ``Psr\\ Cache\ \CacheItemPoolInterface::commit `` method when you are ready
131+ ``Psr\Cache\CacheItemPoolInterface::commit `` method when you are ready
132132to persist them all::
133133
134134 // ...
@@ -149,22 +149,22 @@ Removing Cache Items
149149~~~~~~~~~~~~~~~~~~~~
150150
151151Cache Pools include methods to delete a cache item, some of them or all of them.
152- The most common is ``Psr\\ Cache\ \CacheItemPoolInterface::deleteItem ``,
152+ The most common is ``Psr\Cache\CacheItemPoolInterface::deleteItem ``,
153153which deletes the cache item identified by the given key (it returns ``true ``
154154when the item is successfully deleted or doesn't exist and ``false `` otherwise)::
155155
156156 // ...
157157 $isDeleted = $cache->deleteItem('user_'.$userId);
158158
159- Use the ``Psr\\ Cache\ \CacheItemPoolInterface::deleteItems `` method to
159+ Use the ``Psr\Cache\CacheItemPoolInterface::deleteItems `` method to
160160delete several cache items simultaneously (it returns ``true `` only if all the
161161items have been deleted, even when any or some of them don't exist)::
162162
163163 // ...
164164 $areDeleted = $cache->deleteItems(['category1', 'category2']);
165165
166166Finally, to remove all the cache items stored in the pool, use the
167- ``Psr\\ Cache\ \CacheItemPoolInterface::clear `` method (which returns ``true ``
167+ ``Psr\Cache\CacheItemPoolInterface::clear `` method (which returns ``true ``
168168when all items are successfully deleted)::
169169
170170 // ...
@@ -205,7 +205,7 @@ Pruning Cache Items
205205Some cache pools do not include an automated mechanism for pruning expired cache items.
206206For example, the :ref: `FilesystemAdapter <component-cache-filesystem-adapter >` cache
207207does not remove expired cache items *until an item is explicitly requested and determined to
208- be expired *, for example, via a call to ``Psr\\ Cache\ \CacheItemPoolInterface::getItem ``.
208+ be expired *, for example, via a call to ``Psr\Cache\CacheItemPoolInterface::getItem ``.
209209Under certain workloads, this can cause stale cache entries to persist well past their
210210expiration, resulting in a sizable consumption of wasted disk or memory space from excess,
211211expired cache items.
0 commit comments