How long does homemade custard filling for a cake keep?

Homemade custard filling for a cake will generally keep in the refrigerator for 3-4 days.

Here are some tips to ensure it stays fresh:

* Store it properly: Always store custard in an airtight container in the refrigerator.

* Cool it quickly: Once it's made, cool the custard as quickly as possible to prevent bacterial growth.

* Use fresh ingredients: Start with high-quality, fresh ingredients to prevent spoilage.

* Avoid room temperature: Don't leave custard out at room temperature for extended periods.

* Look for signs of spoilage: If you notice any changes in color, texture, or smell, discard the custard.

Remember, these are general guidelines, and the actual shelf life can vary depending on the specific recipe and storage conditions.