8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8f951b commit 4b3fad0Copy full SHA for 4b3fad0
components/cache/adapters/array_cache_adapter.rst
@@ -26,8 +26,12 @@ method::
26
// is reached, cache follows the LRU model (least recently used items are deleted)
27
$maxItems = 0,
28
29
- // implementation of Psr\Clock\ClockInterface (e.g. Symfony\Component\Clock\Clock)
30
- // or null. If clock is provided, cache items lifetime will be calculated
31
- // based on time provided by this clock
32
- $clock = null
+ // optional implementation of the Psr\Clock\ClockInterface that will be used
+ // to calculate the lifetime of cache items (for example to get predictable
+ // lifetimes in tests)
+ $clock = null,
33
);
34
+
35
+.. versionadded:: 7.2
36
37
+ The optional ``$clock`` argument was introduced in Symfony 7.2.
0 commit comments