Check patentability & draft patents in minutes with Patsnap Eureka AI!

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

Inactive Publication Date: 2017-12-22
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The main purpose of the present invention is to propose a data cache initialization method, a mobile terminal and a computer-readable storage medium, aiming at solving the problem that in the related art it takes a long time to initialize the cache or if the system generates high concurrent requests, a large amount of data reads It will directly access the database, which will lead to cache avalanche and poor system performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data cache initialization method, mobile terminal and computer readable storage medium
  • Data cache initialization method, mobile terminal and computer readable storage medium
  • Data cache initialization method, mobile terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data cache initialization method. The method comprises the steps of receiving a reading instruction of reading data, wherein the reading instruction carries a key value of the data; according to the key value, judging whether the data exists in a cache region or not; and if not, initializing a cache. The invention furthermore discloses a mobile terminal and a computer readable storage medium. The problems of relatively long time for initializing the cache or cache avalanche and relatively poor system performance caused by the fact that a database is directly accessed during reading of a large amount of data if a high-concurrency request occurs in a system in related technologies are solved; and the data is read from the cache firstly, and the cache is initialized when it is judged that the to-be-read data does not exist in the cache according to the key value, so that the caching time is shortened, the cache avalanche is effectively prevented, the system performance is improved, and the user experience is improved.

Description

Technical field [0001] The present invention relates to the field of mobile communication technology, and in particular to a data cache initialization method, a mobile terminal and a computer-readable storage medium. Background technique [0002] With the development of the Internet and the popularization of terminals, the user base of terminals has become larger and larger, and at the same time, more intelligent and humanized requirements have been put forward for software. [0003] In the existing technology, in fact, although the terminal is used by the user as a game machine or a TV, it may also be a learning machine, or it may become a baby’s paradise, etc., bringing more fun to our lives. With the upgrading of communication products, mobile terminals (such as mobile phones, personal digital assistants, PDAs, etc.) have become essential communication tools for people. Various functions that are convenient for people's lives can be implemented on mobile terminals, such as mobi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/2228G06F16/24552
Inventor 黄沂
Owner NUBIA TECHNOLOGY CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More