There are cases where probabilistic early expiry is not enough to prevent cache stampedes, most notably during a cold start/restart where the cache is not yet populated and during conditions where source I/O wait times may exceed the possible range of early expiry offset. To completely prevent cache stampedes from occurring, a mutex must be used around settings (re)caching. Early expiry is left in place as it should still be quite effective in reducing cache lock contention. Bug: T296771 Change-Id: I99676466ce1ad4f1622867158d2ed15ef9202ec2 |
||
|---|---|---|
| .. | ||
| Cache | ||
| Config | ||
| Source | ||
| SettingsBuilder.php | ||
| SettingsBuilderException.php | ||