has method

Future<bool> has(
  1. String key
)

Check if key exists

Implementation

Future<bool> has(String key) async {
  if (memoryCache.has(key)) return true;
  if (diskCache != null) {
    return await diskCache!.has(key);
  }
  return false;
}