getOrCreate

suspend fun <K, V> getOrCreate(name: String, configure: CacheConfigBuilder.() -> Unit = {}): Cache<K, V>(source)

Gets or creates a cache with the given name.

Return

the existing or newly created cache

Parameters

name

unique identifier for the cache

configure

optional configuration block