Preheat the oven to 350°F (180°C). Prepare two cake pans by lining them with parchment paper and buttering them.
Mix all the dry ingredients and spices in a bowl.
Mix the grated carrots with the heavy cream in another bowl.
In a separate bowl, beat the eggs, brown sugar, and vanilla extract with a whisk until the mixture is pale. Then add the oil.
In another bowl, gradually mix the dry ingredients with the liquid ingredients until you get a homogeneous batter. Fold in the raisins and chopped walnuts.
Divide the batter into the two cake pans and bake on the middle rack of the oven for 35-40 minutes, or until a toothpick comes out clean.