A refrigerating and freezing device, comprising: a cabinet body in which a storage compartment is provided, a first sealed space and a second sealed space being formed in the storage compartment; and a nitrogen generation device comprising an adsorption device and an air compressor , wherein the air compressor supplies compressed air for the adsorption device in a controlled manner, the adsorption device is communicated with the first sealed space or the second sealed space in a controlled manner, and the nitrogen generation device is configured to: supply the compressed air for the adsorption device , communicate the adsorption device with the first sealed space so as to enable the adsorption device to prepare nitrogen and to provide the prepared nitrogen for the first sealed space , and communicate the adsorption device with the second sealed space after stopping supplying the compressed air for the adsorption device so as to enable the adsorption device to desorb an oxygen-enriched gas and to provide the desorbed oxygen-enriched gas for the second sealed space ; the adsorption device further comprises a first adsorption room and a second adsorption room , carbon molecular sieves are disposed in the first adsorption room and the second adsorption room , the air compressor alternately supplies the compressed air for the first adsorption room and the second adsorption room in a controlled manner; when one of the first adsorption room and the second adsorption room is communicated with the first sealed space and adsorbs the oxygen-enriched gas to prepare nitrogen, the other thereof is communicated with the second sealed space and desorbs the carbon molecular sieves which have finished adsorption. a cabinet body in which a storage compartment is provided, a first sealed space and a second sealed space being formed in the storage compartment; and a nitrogen generation device comprising an adsorption device and an air compressor , wherein the air compressor supplies compressed air for the adsorption device in a controlled manner, the adsorption device is communicated with the first sealed space or the second sealed space in a controlled manner, and the nitrogen generation device is configured to: supply the compressed air for the adsorption device , communicate the adsorption device with the first sealed space so as to enable the adsorption device to prepare nitrogen and to provide the prepared nitrogen for the first sealed space , and communicate the adsorption device with the second sealed space after stopping supplying the compressed air for the adsorption device so as to enable the adsorption device to desorb an oxygen-enriched gas and to provide the desorbed oxygen-enriched gas for the second sealed space ; supply the compressed air for the adsorption device , communicate the adsorption device with the first sealed space so as to enable the adsorption device to prepare nitrogen and to provide the prepared nitrogen for the first sealed space , and communicate the adsorption device with the second sealed space after stopping supplying the compressed air for the adsorption device so as to enable the adsorption device to desorb an oxygen-enriched gas and to provide the desorbed oxygen-enriched gas for the second sealed space ; the adsorption device further comprises a first adsorption room and a second adsorption room , carbon molecular sieves are disposed in the first adsorption room and the second adsorption room , the air compressor alternately supplies the compressed air for the first adsorption room and the second adsorption room in a controlled manner; when one of the first adsorption room and the second adsorption room is communicated with the first sealed space and adsorbs the oxygen-enriched gas to prepare nitrogen, the other thereof is communicated with the second sealed space and desorbs the carbon molecular sieves which have finished adsorption. <EOS>