Unlock instant, AI-driven research and patent intelligence for your innovation.

Cache processing method and system

A cache processing and caching technology, applied in the computer field, to achieve the effect of avoiding inconsistency between the cache and the database

Active Publication Date: 2020-05-19
北京仁科互动网络技术有限公司
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Depending on the cache usage scenarios, cache inconsistencies can lead to minor or severe consequences that must be controlled or resolved

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 processing method and system
  • Cache processing method and system
  • Cache processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0039] The cache mentioned in the embodiment of the present invention is fast data storage provided to improve data access speed and reduce database access pressure, provided by an independently deployed cache server, such as redis or memcached. Entity refers to a business object, which corresponds to a class in the software system, such as a cust...

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 embodiment of the invention provides a cache processing method and system. The method comprises the steps: generating a first target lease according to a target data request instruction if a judgment result shows that a target data cache is missed; sending the first target lease to a client, so that the client generates a second target lease; and receiving the second target lease, and if the first target lease does not exist or the first target lease is inconsistent with the second target lease, not setting a cache. The embodiment of the invention provides a cache processing method and system. The first target lease and the second target lease are matched in the cache processing process, and if the first target lease and the second target lease are inconsistent, it is indicated that the target data is modified in the period from cache missing to data reading and then to cache setting, so that cache is not set, and the defect that the cache is inconsistent with a database is avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a cache processing method and system. Background technique [0002] In software services, databases are usually used as core storage. However, the reading speed of the database is relatively slow. In order to improve the speed of user queries, it is often used in combination with caching. After the cache is introduced, there may be inconsistencies between the data in the cache and the data in the database. [0003] Depending on the cache usage scenario, cache inconsistencies can have minor or severe consequences that must be controlled or resolved. Contents of the invention [0004] In order to solve the above problems, embodiments of the present invention provide a cache processing method and system. [0005] In a first aspect, an embodiment of the present invention provides a cache processing method, including: [0006] According to the target data request instr...

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): G06F16/2455G06F16/23
CPCG06F16/24552G06F16/2365Y02D10/00
Inventor 许高明朱滨张英男兰博
Owner 北京仁科互动网络技术有限公司