8000 Added docs about default_lifetime · symfony/symfony-docs@79f5dd6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79f5dd6

Browse files
committed
Added docs about default_lifetime
This will fix #14347
1 parent 1dc65ff commit 79f5dd6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,9 +2847,14 @@ Can also be the service id of another cache pool where tags will be stored.
28472847
default_lifetime
28482848
""""""""""""""""
28492849

2850-
**type**: ``integer``
2850+
**type**: ``integer`` | ``string``
28512851

2852-
Default lifetime of your cache items in seconds.
2852+
Default lifetime of your cache items. Given an integer value to set the default
2853+
lifetime in seconds. A string value could be ISO 8601 time interval, like ``"PT5M"``
2854+
or a PHP date expression that is accepted by ``strtotime()``, like ``"5 minutes"``.
2855+
2856+
If no value is provided, the cache adapter will fallback to the default value on
2857+
the actual cache storage.
28532858

28542859
provider
28552860
""""""""

0 commit comments

Comments
 (0)
0