containsKey abstract method

bool containsKey(
  1. K key
)

returns true if the item is available in the cache. Take this with a grain of salt since the item may be evicted before it will be retrieved. It is better to use get and check for null returns.

Implementation

bool containsKey(K key);