has method
Checks if a specific key exists in the cache.
key
is the unique identifier to check for.
Returns true if the key exists, false otherwise.
Implementation
Future<bool> has(String key) async {
final File cacheFile = File('${_cacheDirectory.path}/$key');
return await cacheFile.exists();
}