deleteExpiredKeys method
Removes all expired keys. Deletes are local-only — they are
NOT appended to the commit log, so an expiry sweep never
advances the local commitId and never propagates to other
secondaries via sync. Expiry is treated as backend
maintenance, not a sync-worthy mutation; clients drop expired
keys independently using their own TTL bookkeeping.
Implementation
@override
Future<bool> deleteExpiredKeys() async {
final keys = await (await getExpiredKeys()).toList();
for (final k in keys) {
await remove(k, skipCommit: true);
}
return true;
}