File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/Symfony/Component/Cache/Adapter Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,17 @@ public function clear(string $prefix = ''): bool
120
120
return parent ::clear ($ prefix );
121
121
}
122
122
123
+ /**
124
+ * {@inheritdoc}
125
+ */
126
+ protected function evictExpiredItems (array $ expiredItemKeys )
127
+ {
128
+ // Although it's better to remove big stale items explicitly to free up the memory for recomputed values,
129
+ // thereby preventing possible evictions of other still fresh items, we keep these keys for other clients
130
+ // as a measure of stampede protection in multi-server setups assuming that we got these keys most likely
131
+ // because of (presumably small) time discrepancy between hosts. Anyway, Redis will delete them soon.
132
+ }
133
+
123
134
/**
124
135
* {@inheritdoc}
125
136
*/
You can’t perform that action at this time.
0 commit comments