purgeExpired method
Removes expired entries. Reads already ignore them; this reclaims space.
Implementation
@override
Future<int> purgeExpired() async {
await initialize();
return database.execute(
'DELETE FROM $tableName WHERE expires_at IS NOT NULL AND expires_at <= ?',
<Object?>[DateTime.now().millisecondsSinceEpoch],
);
}