Creates a new query cache with the specified capacity and applies the block to the builder.
val cache = QueryCacheBuilder { put(GetUserKey.Id(userId), user) ..}