:invalidate_collection can now take lambdas.