Skip to content

Commit e8f951b

Browse files
committed
minor #20070 [Cache] Add information about clock parameter in ArrayAdapter (jasiolpn)
This PR was merged into the 7.2 branch. Discussion ---------- [Cache] Add information about clock parameter in ArrayAdapter Fixes #20069 Commits ------- aec2ec5 Added information about clock parameter in ArrayAdapter
2 parents ec06379 + aec2ec5 commit e8f951b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/cache/adapters/array_cache_adapter.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,10 @@ method::
2424

2525
// the maximum number of items that can be stored in the cache. When the limit
2626
// is reached, cache follows the LRU model (least recently used items are deleted)
27-
$maxItems = 0
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
2833
);

0 commit comments

Comments
 (0)