delete method
Closes the cache and deletes all of its stored values. This will delete all files in the cache directory including files that weren't created by the cache.
Implementation
Future<void> delete() =>
_lock.synchronized(() => _delete().then((value) => _closed = true));