getOrPut

suspend fun <V> CacheTransaction<V>.getOrPut(key: String, defaultValue: suspend () -> V): V

Gets the current cached value for the given key or creates and caches a new one.