getOrPut

suspend fun getOrPut(key: K, defaultValue: suspend () -> V): V

Get a value or compute and cache it if missing.