A raspberry cake, especially one with a moist filling or frosting, can last in the refrigerator for about 3 to 5 days. It should be stored in an airtight container to maintain its freshness and prevent it from absorbing other flavors from the fridge.