toSequence

abstract fun toSequence(): Sequence<Pair<K, V>>

Converts this cache to a sequence of key-value pairs, containing a snapshot of all the key-value pairs currently cached