We develop a theory of the quasi-static electrodynamic Greens function of deep subwavelength optical cavities containing an hyperbolic medium. We apply our theory to one-dimensional cavities realized using an hexagonal boron nitride and a patterned metallic substrate.