8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc65ff commit 79f5dd6Copy full SHA for 79f5dd6
reference/configuration/framework.rst
@@ -2847,9 +2847,14 @@ Can also be the service id of another cache pool where tags will be stored.
2847
default_lifetime
2848
""""""""""""""""
2849
2850
-**type**: ``integer``
+**type**: ``integer`` | ``string``
2851
2852
-Default lifetime of your cache items in seconds.
+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.
2858
2859
provider
2860
""""""""
0 commit comments