Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for reading data by utilizing multilevel cache and multilevel cache apparatus for caching data

A technology for reading data and caching, which is applied in electronic digital data processing, structured data retrieval, special data processing applications, etc. It can solve the problems of inability to obtain cached data, loss of cached data, and long cached time when the database cannot be connected. , to achieve the effect of increasing throughput, reducing the time for processing data, and shortening the time for obtaining cache

Inactive Publication Date: 2017-12-08
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] 1. Both Redis and HBase are single-database storage, and single-database storage may have the risk of losing cached data, and there may be situations where the cached data cannot be obtained if the database is not connected;
[0013] 2. Both Redis and HBase need to obtain the stored cache value through the network. Obtaining the stored cache value through the network depends on the network condition, which is more limited, and the online cache takes a long time

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
  • Method for reading data by utilizing multilevel cache and multilevel cache apparatus for caching data
  • Method for reading data by utilizing multilevel cache and multilevel cache apparatus for caching data
  • Method for reading data by utilizing multilevel cache and multilevel cache apparatus for caching data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0034] image 3 is a schematic diagram of main steps of a method for reading data by using a multi-level cache according to an embodiment of the present invention. In the method for reading data by using a multi-level cache according to the present invention, the multi-level cache includes N buffer areas, and the N buffer areas have different priorities, and N is an integ...

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 provides a method for reading data by utilizing a multilevel cache and a multilevel cache apparatus for caching the data. The data loss risk can be lowered; the time for obtaining cached data can be shortened; the data processing time in a calculation process can be shortened; and the program throughput can be increased. According to the method for reading the data by utilizing the multilevel cache, the multilevel cache comprises N cache regions; the N cache regions have different priorities; and N is an integer greater than 1. The method is characterized by comprising the steps of trying to read required data from the N cache regions according to a sequence of priorities from high to low; and when the data is successfully read in one cache region, returning the data and synchronously caching the data to the cache regions with the priorities higher than the priority of the cache region in which the data is read.

Description

technical field [0001] The invention relates to the technical field of computers and computer software, in particular to a method for reading data by using a multi-level cache and a multi-level cache device for caching data. Background technique [0002] In the process of Storm streaming calculation, subsequent calculations need to rely on historical calculation results. For example, when we calculate the real-time PV (abbreviation of page view, that is, page views) value of the website, each PV value calculation needs to rely on The historical PV value. At this time, the historical calculation results (ie: intermediate results) need to be cached. The existing method is to directly cache the calculation results in a single database, such as Redis, HBase, etc. When you need to use the cached intermediate results for calculations, read them directly from the database. [0003] Take intermediate results cached in Redis as an example (refer to figure 1 ), read cached data dire...

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/27G06F16/2471
Inventor 雷强王彦明刘业辉袁建军
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Features
  • Generate Ideas
  • 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