toMap

abstract fun toMap(): Map<K, V>

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