delete method
Removes the entry associated with the key
from the cache.
Does nothing if the key is not found.
Implementation
@override
Future<void> delete(String key) async {
await _ensureDbOpen();
final transaction = _db!.transaction('data', 'readwrite');
final store = transaction.objectStore('data');
await store.delete(key);
await transaction.completed;
}