invalidate method

Future<void> invalidate(
  1. String key
)

Invalidates the cache entry associated with the given key.

This method removes the entry from the cache.

Implementation

Future<void> invalidate(String key) async {
  await delete(key);
}