hasKey method

  1. @override
Future<bool> hasKey(
  1. String key
)
override

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();
}