Melt the butter in a sauté pan over moderate heat until it starts to bubble. Add the shallots and garlic and sweat until translucent.
Add the spinach and sauté gently until the spinach is wilted, 1 to 2 minutes. Transfer the spinach mixture to a stainless-steel bowl and cool to room temperature.
Add the cheese and nuts and season with salt and pepper.