containsKey method

bool containsKey(
  1. K key
)

Whether the cache contains a live (non-expired) entry for key.

Implementation

bool containsKey(K key) => get(key) != null;