A cave in a dream often points to retreat and the unconscious -- a place to withdraw from noise and get closer to something true, even if it's uncomfortable to face. Finding shelter in a cave can reflect a healthy need for solitude, while feeling trapped inside one may point to truths you've been avoiding.
Make the Sun, or any of the superiors to signify princes and great persons. Scribes and rusticks, [are shown by] the inferior planets, and chiefly the Moon. - William Lilly (1602.-1681.)