containsKey method
Checks if the cache contains a value associated with the given key
.
Returns true
if the cache contains the key, false
otherwise.
Implementation
@override
Future<bool> containsKey(String key) async {
final db = await database;
final result = await db.query('cache', where: 'key = ?', whereArgs: [key]);
return result.isNotEmpty;
}