Skip to content

Commit aec2ec5

Browse files
committed
Added information about clock parameter in ArrayAdapter
1 parent a615203 commit aec2ec5

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)