Data caching method and system for network request

A data caching and network request technology, applied in the network field, can solve problems such as occupying a large memory space, unable to save data, and data delay

CN109769005AInactive Publication Date: 2019-05-17NINGBO FOTILE KITCHEN WARE CO LTD
7 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2019-05-17
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention relates to a data caching method and system for a network request, and the method comprises the steps: adding a data caching device between a client and a server, and receiving data request information which is transmitted on a network and has a URL identifier; the caching device intercepts and caches the URL identifier of each piece of data request information and establishes a caching database; when the client sends a data request to the server, the client sends data request information to the data caching device for judgment: when the URL identifier corresponding to the current data request information sent by the client is located in the caching database, the data caching device sends cached response data corresponding to the current URL identifier to the client; otherwise, the data caching device forwards the data request information sent by the client to the server; the server sends response data corresponding to the data request information URL identifier to the data caching device for caching; and the data caching device sends the cached corresponding response data to the client, so that the client can receive the requested data.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the network field, in particular to a data cache method and a data cache system for network requests. Background technique

[0002] With the development of information network technology, various clients for different applications have been developed one after another. In order to improve the performance of the client, a data cache layer is usually added to the client or a data layer is added to the server. These clients pre-fetch data from the server and save it in memory; when the client sends a data request, the client retrieves the data from the data cache and returns the corresponding data to the client.

[0003] Of course, the traditional data caching method for the above data caching mainly adopts a pre-batch data caching method for data and a real-time filling data caching method for data. For example, when the pre-batch data cache method is used, before the client starts to request data, the data cache will be filled...

Examples

Embodiment Construction

[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0034] Such as figure 1 As shown, the data caching method for the network request in this embodiment is used to realize the data communication between the client and the server, and the data caching method for the network request includes the following steps 1 to 5:

[0035] Step 1, adding a data cache device between the client and the server, so that each data request information transmitted on the network is received by the data cache device; wherein each data request information has a URL identifier representing the data request information; Among them, the URL (Uniform Resource Locator, abbreviated as URL) identifier is also called a uniform resource locator;

[0036]Step 2, the data caching device intercepts the URL identification of each data request information and caches each URL identification and the response data corresponding to e...