getOrSet

fun <T : Any> getOrSet(keyNamespace: CacheStore.KeyNamespace, vararg keyComponents: Any?, value: () -> T): T

Retrieves the value associated with the key belonging to the specified namespace and matching the given components. If there’s no such value, value is called, and its result is cached and returned.