retainNewest abstract method

Future<void> retainNewest(
  1. int count
)

Keeps the count newest entries in store order (LogCursor), removes the rest and sends their ids as LogEntriesRemovedById to changes, or LogStoreInvalidated if the ids are not cheaply known: the application's count limit, store.retainNewest(50000). A store may also remove entries on its own (a size limit), reporting them the same way.

Implementation

Future<void> retainNewest(int count);