contains

abstract suspend operator fun contains(key: String): Boolean

Returns true if an entry with the given key exists and has not expired.

Return

true if the key is present and not expired, false otherwise.

Parameters

key

The key to look up.

Throws

CancellationException

if the calling coroutine is cancelled.