Data caching method and device, electronic equipment and storage medium
A data caching and data technology, applied in database query, electronic digital data processing, structured data retrieval, etc., can solve the problems of wasting storage media and short caching time, and achieve the goal of protecting database, improving response speed, and saving storage media. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0103] see image 3 , image 3 It is a schematic diagram of the data request processing flow in Embodiment 1 of the present application. The specific steps are:
[0104] Step 301, receiving a data request sent by a user.
[0105] Step 302, query the corresponding data from the passive cache medium according to the KEY carried in the data request.
[0106] After receiving the data request, first query the data corresponding to the KEY in the passive cache medium.
[0107] The KEY here is the unique identifier of the data corresponding to the data request, such as the listing number, etc.
[0108] Step 303, if the passive cache medium fails, query corresponding data from the active cache medium.
[0109] At this time, if the passive cache medium fails, you need to use the active cache medium to implement cache degradation, that is, query the corresponding data in the active cache medium.
[0110] Step 304, if the corresponding data is queried from the active cache medium, ...
Embodiment 2
[0123] see Figure 4 , Figure 4 It is a schematic diagram of the data request processing flow in Embodiment 2 of the present application. The specific steps are:
[0124] Step 401, receiving a data request sent by a user.
[0125] Step 402, query the corresponding data from the passive cache medium according to the KEY carried in the data request.
[0126] Step 403, if the corresponding data is not queried from the passive cache medium and the database connection fails, then query the data from the active cache medium.
[0127] If the connection to the database fails, you cannot query the database, and use the cache downgrade method to query the corresponding data in the active cache medium.
[0128] Step 404: If the corresponding data is queried from the active cache medium, use the data to respond. End this process.
[0129] Step 405: If no corresponding data is found from the active cache medium, respond that no corresponding data is found. End this process.
[013...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com