Unlock instant, AI-driven research and patent intelligence for your innovation.
Method and device for searching cached data
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
A technology for caching data and caching, which is applied in the computer field and can solve problems such as low efficiency of business execution and complex logic
Active Publication Date: 2019-12-06
TENCENT TECH (BEIJING) CO LTD
View PDF5 Cites 0 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
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
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
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
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
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.