Data caching method and device, equipment and storage medium
A data caching and caching technology, applied in the computer field, can solve the problems of instantaneous increase in database access, data loss, cache invalidation, etc., to improve user experience, prevent loss, and improve efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2022-05-27
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of computer technologies, and in particular, to a data caching method, apparatus, device, and storage medium. Background technique
[0002] In the traditional architecture, the request initiated by the client will directly reach the database of the server, and the database will respond to the client after finding the data. Under this architecture, there will be response time timeout and excessive server resource occupation due to too long links, thus affecting the throughput and stability of the system.
[0003] At present, in order to improve the data access speed and program performance, the cache mechanism is usually used to preload the data in the database into the memory, and then it is completed in the memory when accessing the data, thereby reducing the access to the database and solving the problem. In high concurrency scenarios, the database can easily become a performance bottleneck. However, the...
Examples
Embodiment Construction
[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0040] The embodiment of the present application discloses a data caching method, which is applied to a server. See figure 1 As shown, the method includes:
[0041] Step S11: Acquire a data acquisition request initiated by the target client for the target data.
[0042] In this embodiment, it is first necessary to acquire a data acquisition request initiated by a target client (Client) corresponding to the server for the target data whe...