exists method

Future<bool> exists(
  1. String key
)

Implementation

Future<bool> exists(String key) {
  return _lock.synchronized(() async {
    await _initialize();

    _checkNotClosed();
    _validateKey(key);
    final entry = _lruEntries[key];
    if (entry == null) return false;
    return entry.exists();
  });
}