containsKey

Checks if the cache contains data associated with the provided key.

Return

true if the cache contains data associated with the key, false otherwise.

Parameters

key

The key to check for in the cache.