Cache data processing method, electronic equipment, memory medium of computer

A technology for caching data and processing methods, applied in electrical digital data processing, special data processing applications, calculations, etc., and can solve problems such as low efficiency and slow speed

Active Publication Date: 2017-11-07
ZHANGYUE TECH CO LTD
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when a large amount of data is changed, it is slow and inefficient to delete the data in the cache one by one.
When the business is implemented, the data in the cache will also be reassigned, resulting in repeated processing

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
  • Cache data processing method, electronic equipment, memory medium of computer
  • Cache data processing method, electronic equipment, memory medium of computer
  • Cache data processing method, electronic equipment, memory medium of computer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 A flow chart showing a cache data processing method according to Embodiment 1 of the present invention, as shown in figure 1 As shown, the cache data processing method specifically includes the following steps:

[0030] Step S101, update the algorithm factor of the preset data key generation algorithm corresponding to the business type according to the update feedback information of the batch data.

[0031] When the bulk data is updated, for example, the database stores the prices of many books, when a new discount is set for the prices of a large number of books, and the book prices are modified, there will be batch data that needs to be updated. According to the feedback information after updating the batch data from the database, or according to the update feedback information of the batch data after the business completes the batch data update, the business type related to the batch data can be obtained from it, and the preset corresponding to the business...

Embodiment 2

[0043] figure 2 A flow chart showing a method for processing cached data according to Embodiment 2 of the present invention, as shown in figure 2 As shown, the cache data processing method includes the following steps:

[0044] Step S201, according to the update feedback information of the batch data, set the cache data expiration flag corresponding to the service type.

[0045] Step S202, update the algorithm factor of the preset data key generation algorithm corresponding to the service type according to the cache data expiration flag corresponding to the service type.

[0046] According to the update feedback information of the batch data, it is first determined whether the update data volume of the batch data is greater than a preset update threshold. If yes, set the cache data expiration flag according to the business type of the batch data. If the updated data volume of the batch data is less than the preset update threshold, for example, the updated data volume of ...

Embodiment 3

[0059] Embodiment 3 of the present application provides a non-volatile computer storage medium, where at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the cache data processing method in any of the above method embodiments.

[0060] Specifically, the executable instruction can be used to make the processor perform the following operations: update the algorithm factor of the preset data key generation algorithm corresponding to the business type according to the update feedback information of the batch data; receive the data query request sent by the client; carry the data query request The first data key of the data to be queried; use the updated preset data key generation algorithm to generate the second data key used in the cache according to the first data key; correlate the data query result corresponding to the first data key with the second data key associated and stored in the cache.

[006...

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 cache data processing method, electronic equipment and a memory medium of a computer. The cache data processing method includes: according to updating feedback information of batch data, updating an algorithmic factor of a preset data key generating algorithm corresponding to a business type; receiving a data inquiring request transmitted from a client side, wherein the data inquiring request carries a first data key of to-be-inquired data; generating a second data key used for caching according to the first data day by the aid of the updated preset data key generating algorithm; linking a data inquiring result corresponding to the first data key with the second data key, and storing in a cache. According to the cache data processing method, updated data along with the second data key generated by the updated preset data key generating algorithm are stored in the cache so as to be used for subsequent inquiring, and meanwhile, the data key existing in the cache can be deleted automatically by the cache in the situation of not being used for inquiring.

Description

technical field [0001] The invention relates to the field of software, in particular to a cache data processing method, electronic equipment, and a computer storage medium. Background technique [0002] When querying data, find the corresponding result from the database according to the queried data key. But it takes a certain amount of time to query from the database every time. If the data key and its corresponding result are stored in the cache, when a query is required, the corresponding data can be queried from the cache, thereby greatly improving the query speed and better responding to business needs. Therefore, when implementing a business query, the data key and its corresponding result can be stored in the cache, so that the data can be directly obtained from the cache when the data is queried later. [0003] But when the data actually stored in the database changes, the data obtained from the cache during query is not the correct data because the cache still sto...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/23G06F16/24552
Inventor 周兴博
Owner ZHANGYUE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products