Adult flies normally live for 2 to 4 weeks but can hibernate during the winter.I would say as long ur refrigerator temperature not setting too low,it will slow down their development.during that time,
The adults feed on a variety of liquid or semi-liquid substances beside solid materials which have been softened by saliva,so they can maintain in their hibernation.