SubscriptionCacheBuilder
fun SubscriptionCacheBuilder(capacity: Int = 20, block: SubscriptionCacheBuilder.() -> Unit): SubscriptionCache
Creates a new subscription cache with the specified capacity and applies the block to the builder.
val cache = SubscriptionCacheBuilder {
put(UserSubscriptionKey.Id(userId), user)
..
}
Content copied to clipboard