In the Internet of Vehicles (IoV), the classic TCP/IP still plays an important role for data transmission, traffic control and address assignment. However, with increasing requirements on content retrieve efficiency in IoV, the drawbacks of traditional TCP/IP stacks, such as weak scalability in large networks, low efficiency in dense environment and unreliable addressing in high mobility circumstance, have incurred significant performance degradations in vehicular environments. Fortunately, the emerging Named Data Network (NDN) technology provides a good choice to address above issues in vehicular environment by proving content caching capability with introduced content store module, and boosts the research activity of Vehicular Named Data Network (VNDN) in the last few years. In this paper, to improve the service performance, e.g., reducing the delay of data acquisition, a data caching scheme is proposed by taking the spatial-temporal characteristics of data into account. At first, we divided the data in a VNDN into emergency safety message, traffic efficiency message and service message, according to the application requirements. Then, we analyze the spatial-temporal characteristics of these three message categories and design the caching strategy according to these characteristics. Experimental results from NDNSim platform show that our designed scheme has an approximately 50% performance enhancement compared with Leave Copy Everywhere (LCE), Pro(0.7), and Pro(0.2) data caching protocols in terms of average hit rate, average hop count and average cache replacement times, which verifies the reliability and effectiveness of our proposed data caching scheme.