hasKey method
Checks if a key exists in the cache
@param key The key to check @return A Future that resolves to true if the key exists, false otherwise
Implementation
@override
Future<bool> hasKey(String key) async {
final file = await _getFile();
return await file.exists();
}