Blanch the spinach: Bring salted water to a boil. Add the spinach and cook for approximately 90 seconds. Transfer immediately to ice water to stop the cooking. Drain, squeeze thoroughly to remove excess moisture, and roughly chop.
Cook the mushrooms: Place the mushrooms in a 10-inch cast-iron skillet over medium-high heat. Cook, occasionally shaking the skillet, until they begin releasing their moisture.
Add garlic: Once the mushrooms release their liquid, add the minced garlic and a little salt. Continue cooking until most of the liquid has evaporated.
Brown the mushrooms: Add the butter and sauté until the mushrooms develop some browning.
Mix the eggs: In a mixing bowl, beat the eggs with the cream or milk. Whisk in the Gruyere, Pecorino, and chopped spinach.
Combine: Reduce the skillet heat to medium-low. Stir the egg mixture into the mushrooms, distributing the ingredients evenly throughout the skillet.
Cook the frittata: Leave the mixture undisturbed and cook slowly over medium-low heat until the eggs are mostly set, approximately 10 to 15 minutes.
Optional broiler finish: Transfer the skillet under the broiler briefly to brown the surface, if desired. Watch carefully to avoid excessive browning.
Rest and serve: Remove from the heat and allow the frittata to rest for 5 to 10 minutes. Slice into wedges and serve warm, at room temperature, or cold.