Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Local cache updating method and system, client and server

A local cache and update method technology, applied in transmission systems, electrical components, etc., can solve the problem of repeated data updates, achieve data reduction, avoid repeated data updates, and reduce pressure

Active Publication Date: 2014-05-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the embodiments of the present invention is to provide a local cache update method, system, client and server, aiming to solve the problem of repeated data update in existing network data update methods

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
  • Local cache updating method and system, client and server
  • Local cache updating method and system, client and server
  • Local cache updating method and system, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Such as figure 1 Shown is a flow chart of the local cache update method provided by the first embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown.

[0041] 1. The server divides the data into several categories in advance, and adds time stamps for each category of data according to the update time of each category of data.

[0042] In the embodiment of the present invention, the server classifies all software data into several categories in advance, and adds time stamps to each category data according to the update time of each category data on the server side. Wherein, the data can be classified hierarchically according to the category to which the data belongs, or can be classified by keywords or tags, which is not limited here.

[0043] 2. The client judges whether there is data in the local cache, if yes, perform step 4, otherwise, perform step 3.

[0044] 3. In the data update r...

Embodiment 2

[0061] Such as figure 2 Shown is the flowchart of the local cache update method based on network data provided by the second embodiment of the present invention, and the execution subject of the process in this embodiment is figure 1 For the convenience of description, the client only shows the part related to the embodiment of the present invention.

[0062] In step S201, the client initiates a data update request to the server, and the data update request includes the timestamp of each classified data;

[0063] Preferably, when there is no data in the client's local cache, the time stamps of each classified data in the data update request are set to zero.

[0064] In step S202, when the client receives the server and determines that the time stamp of the classification data included in the data update request is different from the time stamp of the corresponding classification data stored in the server, the returned classification data with different time stamps and the cl...

Embodiment 3

[0068] Such as image 3 Shown is the flowchart of the local cache update method based on network data provided by the third embodiment of the present invention, and the execution subject of the process in this embodiment is figure 1 For ease of description, the server only shows the part related to the embodiment of the present invention.

[0069] In step S301, the server divides the data into several categories in advance, and adds time stamps to each category data according to the update time of each category data;

[0070] In step S302, the server receives the data update request initiated by the client, and the data update request includes the time stamp of each classified data;

[0071] In step S303, when the server determines that the time stamp of the classification data included in the data update request is different from the time stamp of the corresponding classification data stored in the server, it sends the classification data with different time stamps and the t...

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 is applied to the field of computer application and provides a local cache updating method and system, a client and a server. The method comprises that the client issues a data updating request to the server, wherein the data updating request comprises the timestamps of every classified data; when determining that the timestamps of the classified data included by the data updating request are different from those of the corresponding classified data stored in the server, the server transmits classified data with the different timestamps and the timestamps of the classified data; the client updates the corresponding classified data of local caches according to the classified data transmitted by the server and updates the timestamps of the updated classified data into the timestamps transmitted by the server. By dividing data into a plurality of classifications, during data updating, the server simply needs to transmit changed classified data to the client, so that the pressure of network transmission can be reduced, and the quantity of data to be processed by the client can be reduced greatly, the data updating efficiency can be improved, and the problem of repeated data updating can be avoided.

Description

technical field [0001] The invention belongs to the field of computer applications, and in particular relates to a local cache update method, system, client and server. Background technique [0002] With the continuous development of the network, Internet data transmission is becoming more and more extensive, and software data updates are basically realized by downloading data from the network. Currently, there are two main ways to update local data through the network: [0003] First, the server sends data to the client according to the data update request sent by the client, and the client rewrites all the received data after deleting the original cached data. This method has poor reliability during execution. For example, if an exception occurs when updating data, the written data will be incomplete, and the software cannot be used normally. [0004] Second, after the server sends data to the client, the client compares the received data with the original data one by on...

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): H04L29/06H04L29/08
Inventor 邓坚曾鹏云李思广
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products