has method

bool has(
  1. dynamic key
)

Check if a key exists in cache (without fetching or checking expiration)

Implementation

bool has(dynamic key) {
  final normalizedKey = _normalizeKey(key);
  return _metadata.containsKey(normalizedKey);
}