A device for producing a spacer by curing bone cement paste , wherein the spacer is provided in the medical field for temporarily replacing a joint or part of a joint comprising an articulating surface of the joint, in particular for temporarily replacing a hip joint or a shoulder joint, the device having a casting mold for molding the spacer from bone cement paste , the casting mold having at least one filling opening for introducing a bone cement paste ; a valve seat , the valve seat being connected to the casting mold in the region of the at least one filling opening , wherein the valve seat has a regionally closed head side with at least one first feed-through , wherein the at least one first feed-through opens into the at least one filling opening ; a valve body which is mounted so as to be rotatable relative to the valve seat and which has a sealing face , wherein the sealing face is oriented in the direction of the regionally closed head side of the valve seat , wherein at least one second feed-through is arranged in the sealing face ; wherein the valve seat and the valve body together form a valve, wherein the valve is reversibly transferable into an open position and into a closed position by rotation of the valve body relative to the valve seat , wherein, in the open position of the valve, the at least one first feed-through of the valve seat and the at least one second feed-through of the valve body are located above one another at least in places and provide a connection permeable to bone cement through the valve into the casting mold , wherein, in the closed position of the valve, the at least one first feed-through of the valve seat is covered by the sealing face of the valve body , wherein, in the closed position of the valve, the at least one filling opening of the casting mold is covered and closed for bone cement paste and wherein the valve is connected on the side remote from the casting mold to a port for liquid-tight connection of a bone cement cartridge or the valve has such a port . a casting mold for molding the spacer from bone cement paste , the casting mold having at least one filling opening for introducing a bone cement paste ; a valve seat , the valve seat being connected to the casting mold in the region of the at least one filling opening , wherein the valve seat has a regionally closed head side with at least one first feed-through , wherein the at least one first feed-through opens into the at least one filling opening ; a valve body which is mounted so as to be rotatable relative to the valve seat and which has a sealing face , wherein the sealing face is oriented in the direction of the regionally closed head side of the valve seat , wherein at least one second feed-through is arranged in the sealing face ; wherein the valve seat and the valve body together form a valve, wherein the valve is reversibly transferable into an open position and into a closed position by rotation of the valve body relative to the valve seat , wherein, in the open position of the valve, the at least one first feed-through of the valve seat and the at least one second feed-through of the valve body are located above one another at least in places and provide a connection permeable to bone cement through the valve into the casting mold , wherein, in the closed position of the valve, the at least one first feed-through of the valve seat is covered by the sealing face of the valve body , wherein, in the closed position of the valve, the at least one filling opening of the casting mold is covered and closed for bone cement paste and wherein the valve is connected on the side remote from the casting mold to a port for liquid-tight connection of a bone cement cartridge or the valve has such a port . <EOS>