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

Cache data processing method and computing device

A technology of computing equipment and processing methods, applied in the direction of electrical digital data processing, special data processing applications, computing, etc., can solve the problems of large business code intrusion and increase the amount of coding, so as to prevent cache penetration, reduce the amount of coding, and realize The effect of cache autoloading

Pending Publication Date: 2021-08-20
BEIJING CHESHANGHUI SOFTWARE
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Based on the existing cache data loading scheme, there will inevitably be a large number of codes with the same logical structure, which not only increases the amount of coding, but also greatly intrudes on the business code

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 and computing device
  • Cache data processing method and computing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0054] According to an implementation manner, the interface corresponding to the target method further includes a method getKey() that returns a parameter value. Here, the method getKey() is used to return each parameter value in the request parameters. In this way, after invoking the target method based on the request parameter, the processing device 125 can obtain the return value of the target method and each parameter value in the request parameter returned by the method getKey() from the interface.

[0055] According to an implementation manner, the generation format of the second cache key may be implemented as: cache key prefix.first single-value parameter value.second single-value parameter value....target method return value.getKey().

[0056] It can be understood that when writing the return value of the target method into the cache, the unique cache key value generated based on the return result of the target method and the return value of the target method are stor...

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. The method comprises the following steps: intercepting a target method comprising annotations; obtaining request parameters of the target method, wherein the request parameters comprise one or more single-value parameters and / or multi-value parameters: forming cache key values according to the request parameters, and obtaining corresponding data from the cache based on a cache key value request; if the cache comprises the data corresponding to the cache key value, directly obtaining the data corresponding to the cache key value, and returning the data; if the cache does not comprise the data corresponding to the cache key value, executing a target method based on the request parameter to obtain a return value of the target method; and storing the return value in the cache, and returning the return value. The invention also discloses a corresponding computing device. According to the cache data processing method, automatic loading of the cache data can be realized under the condition of not depending on service codes.

Description

technical field [0001] The invention relates to the technical fields of computers and the Internet, in particular to a processing method and computing equipment for cached data. Background technique [0002] With the rapid development of the Internet today, in order to meet performance requirements, applications or services generally use caches to cope with the pressure on servers caused by large traffic. By using the cache, the application can respond to user requests faster, but at the same time, the code that implements the cache will cause business intrusion to the business code, which also reduces the testability of the program. [0003] In the prior art, generally, the cache client is used to directly read and write the cache in the business code. When reading and writing the cache based on this scheme, the business code needs to read the data from the cache first. If the data in the cache is not read, execute the method of loading data from other storage media, for e...

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/2455
CPCG06F16/24552
Inventor 王聚强刘文泽
Owner BEIJING CHESHANGHUI SOFTWARE