Originally Posted by
Malcolm McLeod
^^It will do so, but be careful sizing this setup for installation. At full extension, internal pressure drops back to zero (gauge) and its no longer a 'spring'. You probably have to design some amount of pre-load into the cylinder length and mounting points.
Edit: I might use a valve (flow control or even schrader-style) instead of a plug. Some (small?) amount of air will bleed off while the cylinder is compressed. When you then extend the cylinder, it will be more of a vacuum than a spring. The valve will let you easily do a 'reset' and equalize the pressure when extended.