has static method

Future<bool> has(
  1. String key
)

get a value exist

bool has = await Cache.has('foo');

Implementation

static Future<bool> has(String key) async {
  return await Cache()._driver.has(key);
}