delete method

  1. @override
Future<void> delete(
  1. String key, {
  2. bool staleOnly = false,
})
override

Removes the given key from store. staleOnly flag will remove it only if the key is expired (from maxStale).

Implementation

@override
Future<void> delete(String key, {bool staleOnly = false}) async {
  await primary.delete(key, staleOnly: staleOnly);
  return secondary.delete(key, staleOnly: staleOnly);
}