ignoreBackgroundPressure property

bool ignoreBackgroundPressure
final

When true (default), memory pressure signals received while the app is backgrounded are ignored.

iOS caveat: UIApplicationDidReceiveMemoryWarningNotification fires when the app is backgrounded, producing false positives. Without this guard, the cache would be aggressively evicted on every background transition — terrible for UX when the app returns to foreground.

Implementation

final bool ignoreBackgroundPressure;