Compact cylinder with valve