delete method
Deletes the value associated with the given key
.
Throws a CacheException if there is an error deleting the data.
Implementation
@override
Future<void> delete(String key) async {
if (!_isInitialized) await init();
await _box.delete(key);
}