To address the increasingly severe issue of insufficient vehicular caching in the Internet of Vehicles (IoV), Vehicular edge computing uses base stations (BS) and vehicles with computing and storage capabilities as edge servers to cache content. However, most existing studies focus on reducing task costs, assuming vehicles can simultaneously act as requesters and providers, without considering whether a vehicle is suitable to serve as a provider, willing to share resources or ensure secure data transmission, thus lowering matching efficiency. Deep reinforcement learning and blockchain technology were integrated into the Internet of Vehicles to address distributed vehicle-to-vehicle collaborative caching. An optimal collaborative caching strategy was designed, considering dynamic vehicle attributes, with the system's objective being to maximize vehicle utility to encourage resource sharing. Simulation results confirm that the proposed blockchain-based vehicular edge computing collaborative caching scheme with deep reinforcement learning significantly outperforms other strategies.