Skip to content

Commit

Permalink
minor symfony#10112 [Cache] minor tweaks (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

[Cache] minor tweaks

Commits
-------

d8d881d [Cache] minor tweaks
  • Loading branch information
javiereguiluz committed Jul 23, 2018
2 parents 55017bf + d8d881d commit 3c80d1a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ The Cache Component

The Cache component provides an extended `PSR-6`_ implementation as well as
a `PSR-16`_ "Simple Cache" implementation for adding cache to your applications.
It is designed to have a low overhead and it ships with ready to use adapters
for the most common caching backends.
It is designed for performance and resiliency, and ships with ready to use
adapters for the most common caching backends, including proxies for adapting
from/to `Doctrine Cache`_.

.. versionadded:: 3.3
The PSR-16 "Simple Cache" implementation was introduced in Symfony 3.3.
Expand Down Expand Up @@ -192,4 +193,4 @@ Advanced Usage (PSR-6)

.. _`PSR-6`: http://www.php-fig.org/psr/psr-6/
.. _`PSR-16`: http://www.php-fig.org/psr/psr-16/
.. _Packagist: https://packagist.org/packages/symfony/cache
.. _Doctrine Cache: https://www.doctrine-project.org/projects/cache.html
2 changes: 1 addition & 1 deletion components/cache/adapters/pdo_doctrine_dbal_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ third, and forth parameters::
// until the database table is truncated or its rows are otherwise deleted)
$defaultLifetime = 0,

// an array of options for configuring the database connection
// an array of options for configuring the database table and connection
$options = array()
);

Expand Down
6 changes: 3 additions & 3 deletions components/cache/cache_invalidation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ several cached items, keeping them in sync can be difficult.

The Symfony Cache component provides two mechanisms to help solving this problem:

* :ref:`Tags based invalidation <cache-component-tags>` for managing data dependencies;
* :ref:`Tags-based invalidation <cache-component-tags>` for managing data dependencies;
* :ref:`Expiration based invalidation <cache-component-expiration>` for time related dependencies.

.. _cache-component-tags:
Expand All @@ -21,9 +21,9 @@ Using Cache Tags
----------------

.. versionadded:: 3.2
Tags based invalidation was introduced in Symfony 3.2.
Tags-based invalidation was introduced in Symfony 3.2.

To benefit from tags based invalidation, you need to attach the proper tags to
To benefit from tags-based invalidation, you need to attach the proper tags to
each cached item. Each tag is a plain string identifier that you can use at any
time to trigger the removal of all items associated with this tag.

Expand Down
2 changes: 1 addition & 1 deletion components/cache/cache_pools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ allowing manual removal of stale cache items::

The :ref:`ChainAdapter <component-cache-chain-adapter>` implementation does not directly
contain any pruning logic itself. Instead, when calling the chain adapter's
:method:`Symfony\\Component\\Cache\\ChainAdapter::prune` method, the call is delegated to all
:method:`Symfony\\Component\\Cache\\Adapter\\ChainAdapter::prune` method, the call is delegated to all
its compatible cache adapters (and those that do not implement ``PruneableInterface`` are
silently ignored)::

Expand Down

0 comments on commit 3c80d1a

Please sign in to comment.