Skip to content

Commit 8f898d4

Browse files
ocrampete16javiereguiluz
authored andcommitted
Misc wording/grammar improvements
1 parent acc05dd commit 8f898d4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

cache.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Cache
55
=====
66

7-
Using cache is a great way of making your application run quicker. The Symfony cache
8-
component is shipped with many adapters to different storages. Every adapter is
7+
Using a cache is a great way of making your application run quicker. The Symfony cache
8+
component ships with many adapters to different storages. Every adapter is
99
developed for high performance.
1010

1111
The following example shows a typical usage of the cache::
@@ -27,7 +27,7 @@ The following example shows a typical usage of the cache::
2727
// ... and to remove the cache key
2828
$pool->delete('my_cache_key');
2929

30-
Symfony supports the Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
30+
Symfony supports Cache Contracts, PSR-6/16 and Doctrine Cache interfaces.
3131
You can read more about these at the :doc:`component documentation </components/cache>`.
3232

3333
.. versionadded:: 4.2
@@ -46,9 +46,9 @@ of:
4646
This is a service that you will interact with. Each pool will always have
4747
its own namespace and cache items. There is never a conflict between pools.
4848
**Adapter**
49-
An adapter is a *template* that you use to create Pools.
49+
An adapter is a *template* that you use to create pools.
5050
**Provider**
51-
A provider is a service that some adapters are using to connect to the storage.
51+
A provider is a service that some adapters use to connect to the storage.
5252
Redis and Memcached are example of such adapters. If a DSN is used as the
5353
provider then a service is automatically created.
5454

@@ -108,7 +108,7 @@ The Cache component comes with a series of adapters pre-configured:
108108
* :doc:`cache.adapter.redis </components/cache/adapters/redis_adapter>`
109109

110110
Some of these adapters could be configured via shortcuts. Using these shortcuts
111-
will create pool with service id of ``cache.[type]``
111+
will create pools with service IDs that follow the pattern ``cache.[type]``.
112112

113113
.. configuration-block::
114114

@@ -302,13 +302,13 @@ You can also create more customized pools:
302302
],
303303
]);
304304
305-
Each pool manages a set of independent cache keys: keys of different pools
305+
Each pool manages a set of independent cache keys: keys from different pools
306306
*never* collide, even if they share the same backend. This is achieved by prefixing
307307
keys with a namespace that's generated by hashing the name of the pool, the name
308308
of the compiled container class and a :ref:`configurable seed<reference-cache-prefix-seed>`
309309
that defaults to the project directory.
310310

311-
Each custom pool becomes a service where the service id is the name of the pool
311+
Each custom pool becomes a service whose service ID is the name of the pool
312312
(e.g. ``custom_thing.cache``). An autowiring alias is also created for each pool
313313
using the camel case version of its name - e.g. ``custom_thing.cache`` can be
314314
injected automatically by naming the argument ``$customThingCache`` and type-hinting it
@@ -334,7 +334,7 @@ Custom Provider Options
334334

335335
Some providers have specific options that can be configured. The
336336
:doc:`RedisAdapter </components/cache/adapters/redis_adapter>` allows you to
337-
create providers with option ``timeout``, ``retry_interval``. etc. To use these
337+
create providers with the options ``timeout``, ``retry_interval``. etc. To use these
338338
options with non-default values you need to create your own ``\Redis`` provider
339339
and use that when configuring the pool.
340340

@@ -426,7 +426,7 @@ item in a cache chain, Symfony stores it in all pools sequentially. When
426426
retrieving an item, Symfony tries to get it from the first pool. If it's not
427427
found, it tries the next pools until the item is found or an exception is thrown.
428428
Because of this behavior, it's recommended to define the adapters in the chain
429-
in order from the fastest to the slowest.
429+
in order from fastest to slowest.
430430

431431
If an error happens when storing an item in a pool, Symfony stores it in the
432432
other pools and no exception is thrown. Later, when the item is retrieved,
@@ -494,9 +494,9 @@ Using Cache Tags
494494
----------------
495495

496496
In applications with many cache keys it could be useful to organize the data stored
497-
to be able to invalidate the cache more efficient. One way to achieve that is to
497+
to be able to invalidate the cache more efficiently. One way to achieve that is to
498498
use cache tags. One or more tags could be added to the cache item. All items with
499-
the same key could be invalidate with one function call::
499+
the same key could be invalidated with one function call::
500500

501501
use Symfony\Contracts\Cache\ItemInterface;
502502
use Symfony\Contracts\Cache\TagAwareCacheInterface;
@@ -644,14 +644,14 @@ Clearing the Cache
644644

645645
To clear the cache you can use the ``bin/console cache:pool:clear [pool]`` command.
646646
That will remove all the entries from your storage and you will have to recalculate
647-
all values. You can also group your pools into "cache clearers". There are 3 cache
647+
all the values. You can also group your pools into "cache clearers". There are 3 cache
648648
clearers by default:
649649

650650
* ``cache.global_clearer``
651651
* ``cache.system_clearer``
652652
* ``cache.app_clearer``
653653

654-
The global clearer clears all the cache in every pool. The system cache clearer
654+
The global clearer clears all the cache items in every pool. The system cache clearer
655655
is used in the ``bin/console cache:clear`` command. The app clearer is the default
656656
clearer.
657657

0 commit comments

Comments
 (0)