A local cache update method, system, client and server

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

Active Publication Date: 2018-12-07
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 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
  • A local cache update method, system, client and server
  • A local cache update method, system, client and server
  • A local cache update method, system, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] like figure 1 Shown is a flow chart of the method for updating a local cache provided by the first embodiment of the present invention. For convenience of description, only 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 a timestamp to each category data according to the update time of each category data.

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

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

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

Embodiment 2

[0061] like figure 2 Shown is a flowchart of a method for updating a local cache based on network data provided by the second embodiment of the present invention. The execution subject of the process in this embodiment is: figure 1 The client, for the convenience of description, 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 local cache of the client, the timestamp of each category data in the data update request is set to zero.

[0064] In step S202, when the client terminal 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 and the classification data with different time stamp...

Embodiment 3

[0068] like image 3 Shown is a flowchart of a method for updating a local cache based on network data provided by the third embodiment of the present invention. The execution body of the process in this embodiment is: figure 1 The server, for the convenience of description, 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 a timestamp to each classified data according to the update time of each classified data;

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

[0071] In step S303, when determining 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 server sends the classification data with different time stamps and...

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 application, and in particular relates to a local cache updating 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 the data update of software is basically realized by downloading data from the network. Today, 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 ...

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 Patents(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products