Offline data caching method and system

A data cache and data technology, applied in the Internet field, can solve problems such as low development efficiency

Inactive Publication Date: 2016-01-06
BEIJING FOREVER TECH
View PDF7 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] After research, the inventor found that controlling data caching through code writ

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
  • Offline data caching method and system
  • Offline data caching method and system
  • Offline data caching method and system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0068] The mobile terminal is used to watch the video, and the mobile terminal downloads the video from the server. The mobile terminal and the server determine the mutual time stamp through the inherent protocol, and apply the offline caching method provided by this application to download each frame of the mobile terminal. The video data is monitored to determine the time stamp of each frame of data. For example, when the terminal user watches for 1 hour and 30 minutes, the mobile terminal is disconnected from the network, at this time monitor the timestamp of the last frame of video data; trigger the application to obtain the timestamp, and according to the timestamp information, will need to upload The data to the server is written into the synchronization queue. The data uploaded to the server can include the title of the film, which position has been seen, and the agreed time stamp of the position, thus triggering the server to start from the time stamp of the breakpoint ...

no. 2 example

[0070] The application terminal downloads the document data. The document data is downloaded in the form of data packets. For example, ten data packets need to be downloaded. When the fifth packet is downloaded and the terminal is disconnected from the network, the time stamp of the fourth packet will be recorded. According to the agreement The protocol is written into the synchronous queue, and when the network is reconnected, the transmission can be resumed, and the transmission can also be resumed at the specific byte in the fifth data packet.

[0071] and figure 1 Corresponding to the offline data caching method, an embodiment of the present application provides an offline data caching system, the schematic diagram of which is shown in Figure 4 shown, including:

[0072] The monitoring unit 401 is configured to monitor the downloaded application service data in real time during the process of downloading the application service data by the terminal;

[0073] A triggerin...

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 provides an offline data caching method. The method comprises the following steps: in a process when a terminal downloads application service data, monitoring downloaded application service data in real time; when the terminal does not have any network connection, triggering a preset application to obtain timestamp information of the downloaded application service data; writing application service data needing to be uploaded to a server into a synchronization queue in a preset sequence according to the timestamp information; and when the terminal is connected to Internet once again, uploading the application service data in the synchronization queue to the server in order to realize caching of offline data. According to the offline data caching method disclosed by the invention, caching of the offline data is realized by triggering of the application according to a timestamp of the downloaded application service data in combination with the synchronization queue when the terminal does not have any network connection. The set application is run directly without additional code writing, and a high data caching efficiency is realized.

Description

technical field [0001] The present application relates to the Internet field, in particular to an offline data caching method and system. Background technique [0002] With the rapid development of the mobile Internet, more and more mobile applications have been developed for use by user terminals, and have gradually become an indispensable part of Internet user terminals, which may be used on various occasions at any time. [0003] When the user terminal application is running, it needs to exchange data with the server. But sometimes, the terminal side will be disconnected or no network, etc., causing the terminal application to fail to download data from the server. The existing mechanism of caching data for terminal applications is to write corresponding logic with codes from the perspective of business layer applications to realize caching of application data when the network is disconnected. [0004] After research, the inventor found that controlling the cache of dat...

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): H04L29/08
CPCH04L67/59H04L67/568
Inventor 罗新伟江春华胡宝良陈显龙方文孙敏杰陈宝珍
Owner BEIJING FOREVER TECH
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