A cartridge and a teatcup to be attached to the teat of an animal to be milked are disclosed. The cartridge includes an elongated sleeve, having an upper end section and a lower end section, and a teatcup liner pre-mounted in the elongated sleeve. The teatcup liner includes an upper end portion located at the upper end section, a lower end portion located at the lower end section, and a barrel portion extending between the upper and lower end portions. The barrel portion has a polygonal cross-sectional shape defining a plurality of corner portions and a plurality of side portions. The elongated sleeve includes a primary locking member. The teatcup liner includes a primary complementary locking member. The two locking members engage each other to prevent rotation of the teatcup liner in relation to the elongated sleeve.