delete method

  1. @override
Future<void> delete(
  1. K cacheKey
)
override

Delete cache by cacheKey.

Implementation

@override
Future<void> delete(K cacheKey) async {
  final box = await _ensureBox();
  final newValue = {...box.value}..remove(cacheKey);
  box.value = newValue;
}