Cache data search method and apparatus

A technology for caching data and caching, which is applied in the computer field and can solve problems such as complex logic and low efficiency of business execution

Active Publication Date: 2016-01-06
TENCENT TECH (BEIJING) CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for searching cached data, to at least solve the problem of low service execution efficiency caused by the need to execute relatively complex logic when services access cached data in the existing cached data lookup mode question

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 search method and apparatus
  • Cache data search method and apparatus
  • Cache data search method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0016] According to an embodiment of the present invention, a cache data lookup method is provided, such as figure 1 As shown, the method includes:

[0017] S102: Obtain query conditions for searching data elements in the cache, where each data element in the cache includes one or more fields, each field includes a field type and a field value, and the query conditions are used to indicate to be searched The field type and the field value to be searched;

[0018] S104: Search the cache for data elements with fields satisfying the query condition;

[0019] S106: If a data element with a field satisfying the query condition is found, read the found data element from the cache.

[0020] It should be clear that one of the problems to be solved by the embodiments of the present invention is to provide a method for effectively searching cached data.

[0021] Specifically, in the embodiment of the present invention, cache may refer to a storage method for data, wherein, compared w...

Embodiment 2

[0068] According to an embodiment of the present invention, there is also provided a cache data search device for implementing the above cache data search method, such as image 3 As shown, the device includes:

[0069] 1) Obtaining unit 302, configured to obtain query conditions for searching data elements in the cache, wherein each data element in the cache includes one or more fields, each field includes a field type and a field value, and the query The condition is used to indicate the field type to be searched and the field value to be searched;

[0070] 2) a search unit 304, configured to search the cache for a data element having a field satisfying the query condition;

[0071] 3) The output unit 306 is configured to read out the found data element from the cache when finding a data element with a field satisfying the query condition.

[0072] It should be clear that one of the problems to be solved by the embodiments of the present invention is to provide a device fo...

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 search method and apparatus. The method comprises: obtaining a query condition used for searching for data elements in a cache, wherein each data element comprises one or more fields, each field comprises a field type and a field value, and the query condition is used for indicating to-be-searched field types and to-be-searched field values; searching for the data element with the field meeting the query condition in the cache; and if the data element with the field meeting the query condition is found, reading out the found data element from the cache. According to the cache data search method and apparatus, the technical problem of relatively low business execution efficiency caused by the fact that a relatively complicated logic needs to be executed when business accesses to cache data in an existing cache data search mode is solved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for searching cached data. Background technique [0002] A cache may refer to a storage of data in which the cached data may be written to or read relatively quickly compared to data stored in a floor-standing storage device such as disk storage. According to the principle of data locality, since accessed data is usually accessed again, some data with high access frequency can be cached, and then specific business execution units such as processors or servers can preferentially access the cache to extract data. This speeds up data access. [0003] It can be seen that the purpose of caching data is to search for a specific data in the cache required by the business. The address reads and writes data directly in the cache. Generally speaking, using physical addresses to read and write data can usually achieve higher read and write speeds. However, because the...

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
Inventor 熊章俊
Owner TENCENT TECH (BEIJING) 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