markStale static method

void markStale(
  1. List keyPrefix
)

Marks queries matching keyPrefix as stale without triggering immediate refetch.

Example:

BloomData.markStale(['posts']);

Implementation

static void markStale(List<dynamic> keyPrefix) {
  for (final entry in _cache.values) {
    if (matchesKey(entry.key, keyPrefix)) {
      entry.isStale = true;
    }
  }
}