limiting mechanism 21 limited according to the opening 15 to keep the shaft 20 moving back and forth to detail the location limiting mechanism 21 limits or defines a finite vibrating range for the shaft 20 and the magnetic structure 50 attached to the shaft 20 is driven back and forth so as to shrink overall volume of the magnetic refrigerator 1 of the invention in advance certainly arrangements of the opening 15 for example location width length and arrangements of the vibrating range of the shaft can be adjusted according to necessary this specification will not specifically limit the embodiment as mentioned the above mentioned torque eliminating device 40 coordinates with the decelerating device 31 of the driving device 30 to transfer movement inertia generated by the shaft 20 when the shaft 20 is driven moving back an forth into potential energy and then storages the potential energy once the shaft 20 is driven moving reversely the torque eliminating device 40 provides pre stored potential energy and transfers the potential energy into reverse movement initial and effectively reduce a part of reverse torque which the driving device 30 will provide thus total consumption of the magnetic refrigerator 1 of the invention will be reduced too in the same logic any kind of device or component which can adjust movement potential energy and or spring energy is adapted to eliminate the reverse torque of the shaft as the eliminating device 40 as mentioned for example spring spring sheet rubber washer rubber ball magnetic module electromagnetic buffer hydraulic buffer gas buffer and the combination thereof will be suitable substitutes the above mentioned heat dissipating unit 70 is connected to the working pieces 60 through a plurality of heat pipes 71 wherein a heat conducting fluid 73 as shown.