clear method

Future<void> clear()

Drop every entry from the underlying box AND from the in-memory caches (_expiryKeysCache). Used by AtPersistenceBundle.clear for cheap test isolation — production code uses close instead.

Implementation

Future<void> clear() async {
  await getBox().clear();
  _expiryKeysCache.clear();
}