I found another technique quite fascinating.. When electricity is surplus, spin large disk-shaped rocks levitated by magnets in a vacuumed enclosure. Use this spinning motion to create electricity when required.
https://en.m.wikipedia.org/wiki/Flywheel_storage_power_syste...