Its called an accumulator they have been used various form for centuries the earliest one i know about where used in tower bridge in london where two huge weights were pumped up in the air using hydraulics and then the stored enegry used to open the bridge.

The clever bit would be the valve inside that would release the pressure when you pull the chain
_________________________
P.Allison fixer of big engines Mk2+Mk2a signed by God / Hacked by the Lord Aberdeen Scotland