QueryCacheBuilder

fun QueryCacheBuilder(capacity: Int = 50, block: QueryCacheBuilder.() -> Unit): QueryCache

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

val cache = QueryCacheBuilder {
put(GetUserKey.Id(userId), user)
..
}