9V batteries are often found in devices that aren’t used very often. If you use a NiCd rechargeable battery you may find it completely discharged by the time you need it. Capacitors on the other hand can maintain their charge for years. This circuit uses a 10F cap with a switching voltage regulator to increase the voltage from 2.3V to 9V. With a light load the cap will last up to 3 hours and once discharged it can be recharged in less than 20 seconds. Warning: PDF link.
[thanks nullset]