Data cache initialization method, mobile terminal and computer readable storage medium
An initialization method and data caching technology, which is applied in computing, electrical digital data processing, special data processing applications, etc., can solve the problems of cache avalanche, poor system performance, and long time consumption, so as to prevent cache avalanche and shorten cache Time, the effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0086] Based on the above-mentioned mobile terminal, an embodiment of the present invention provides a data buffer initialization method, image 3 Is a flowchart of a data cache initialization method according to an embodiment of the present invention, such as image 3 As shown, the method includes the following steps:
[0087] Step S301: Receive a read instruction for reading data, wherein the read instruction carries a key value of the data;
[0088] Step S302, judging whether the data exists in the cache area according to the key value;
[0089] Step S303, in the case where the judgment result is no, initialize the cache.
[0090] Through the above steps, by first reading data from the cache and judging that there is no data to be read in the cache according to the key value, the cache is initialized, which solves the need for a long time to initialize the cache in related technologies or if the system is high Concurrent requests, a large number of data reads will directly access t...
Embodiment 2
[0144] According to another aspect of the embodiments of the present invention, a mobile terminal is also provided, Figure 8 Is a block diagram of a mobile terminal for initializing data cache according to an embodiment of the present invention, such as Figure 8 As shown, the mobile terminal includes a processor, a memory, and a communication bus;
[0145] The communication bus is used to realize connection and communication between the processor and the memory;
[0146] The processor is used to execute the data cache initialization program stored in the memory to implement the following steps:
[0147] Receiving a read instruction for reading data, wherein the read instruction carries a key value of the data;
[0148] Judging whether the data exists in the cache area according to the key value;
[0149] In the case where the judgment result is negative, the cache is initialized.
[0150] Optionally, the manager is also used to execute the data cache initialization program to impleme...
Embodiment 3
[0165] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium stores one or more programs, and the one or more programs can be processed by one or more The device executes to implement the steps of the data cache initialization method.
[0166] In the embodiment of the present invention, a read instruction for reading data is received, wherein the read instruction carries the key key value of the data; according to the key value, it is determined whether the data exists in the cache area; in the judgment result In the case of No, the cache is initialized, which solves the problem that it takes a long time to initialize the cache in the related technology or if the system has high concurrent requests, a large amount of data reads will directly access the database, which will lead to a cache avalanche, and the system performance is relatively low. The problem is that by first...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



