Skip to content

[Cache] Reword "max lifetime" to "default lifetime" #17348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/cache/adapters/chain_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This adapter allows combining any number of the other
fetched from the first adapter containing them and cache items are saved to all the
given adapters. This exposes a simple and efficient method for creating a layered cache.

The ChainAdapter must be provided an array of adapters and optionally a maximum cache
The ChainAdapter must be provided an array of adapters and optionally a default cache
lifetime as its constructor arguments::

use Symfony\Component\Cache\Adapter\ChainAdapter;
Expand All @@ -21,8 +21,8 @@ lifetime as its constructor arguments::
// The ordered list of adapters used to fetch cached items
array $adapters,

// The max lifetime of items propagated from lower adapters to upper ones
$maxLifetime = 0
// The default lifetime of items propagated from lower adapters to upper ones
$defaultLifetime = 0
);

.. note::
Expand Down