resetSessionStale method

void resetSessionStale({
  1. String? path,
})

Resets session stale keys and memory cache, optionally for a specific path prefix.

Implementation

void resetSessionStale({String? path}) {
  if (path != null) {
    _l1Cache.removeWhere((key, _) => key.contains(path));
  } else {
    _l1Cache.clear();
  }
}