Keep both whole and ground cloves in an airtight container, stored in a cool, dark place.