Similar to Gauss’ law for electric fields, Ampere’s law is for magnetic field, which states that $\oint_c \vec B \cdot \vec{ds} = \mu 0 I{enc}$
Capacitors were used to store electric energy and produce a uniform $\vec E$ in the case of the parallel plates. Solenoids are used to store magnetic energy and produce a uniform magnetic field.