SubscriptionCacheBuilder

Creates a new subscription cache with the specified capacity and applies the block to the builder.

val cache = SubscriptionCacheBuilder {
put(UserSubscriptionKey.Id(userId), user)
..
}