Cache-based processing method and device

A processing method and caching technology, applied in the computer field, can solve the problems of network congestion, timely return of response data affecting RPC requests, and single management means, so as to reduce the number of requests, ease access pressure, and improve response efficiency.

Pending Publication Date: 2019-12-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: first, the caching strategy is all placed on the server side, and network congestion is prone to occur in high concurrency scenarios, which seriously affects the response data of RPC requests. return in time
Second, starting and stopping ca

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

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] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0035] figure 1 is a schematic diagram of main steps of a cache-based processing method according to an embodiment of the present invention. The method in the embodiment of the present invention can be...

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-based processing method and device, and relates to the technical field of computers. The method comprises the following steps: querying a local cache according to a data query request to obtain target data; and obtaining the target data from a server when the target data does not exist in the local cache, counting the number of requests of the target data, and writing the target data obtained from the server into the local cache when the number of requests exceeds an activation threshold. Through the above steps, the access pressure of the high-frequency networkrequest to the server can be effectively relieved, the response efficiency of the request is improved, the cache mechanism can be automatically triggered according to the statistical condition of therequest, and the flexibility of the cache mechanism is improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a cache-based processing method and device. Background technique [0002] In the existing RPC (Remote Procedure Call) technology, the server provides a set of function interfaces to the client, and all cache strategies are placed on the server. In addition, in the use of cache, the server controls the start and stop of the use of cache based on the configuration file or the switch configuration of the database configuration table. [0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: first, the caching strategy is all placed on the server side, and network congestion is prone to occur in high concurrency scenarios, which seriously affects the response data of RPC requests. Return in time. Second, starting and stopping caching depends on manual configuration (modifying or sett...

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): G06F16/957G06F9/54
CPCG06F9/547G06F2209/541
Inventor 陈然
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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