onRetainNewest abstract method

  1. @protected
Future<Set<int>?> onRetainNewest(
  1. int count
)

Keeps the count newest entries in store order and returns the removed ids (an empty set if there was nothing to remove) or null if they cannot be determined cheaply: the base then sends LogStoreInvalidated. In SQL, DELETE … RETURNING id provides the ids.

Implementation

@protected
Future<Set<int>?> onRetainNewest(int count);