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

Method and device for automatically updating local cache resources

A local cache and automatic update technology, applied in the field of information processing, can solve the problems affecting the update efficiency and accuracy of cache resources, unable to automatically and accurately judge network resources, etc., to improve update efficiency and avoid repeated downloads.

Inactive Publication Date: 2018-04-27
FAFA AUTOMOBILE (CHINA) CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention solves the technical problem in the prior art that it is impossible to automatically and accurately determine whether a network resource has been cached locally, which affects the update efficiency and accuracy of the local cache resource

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
  • Method and device for automatically updating local cache resources
  • Method and device for automatically updating local cache resources
  • Method and device for automatically updating local cache resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] This embodiment provides a method for automatically updating local cache resources, which is applied to terminal devices, such as figure 1 shown, including the following steps:

[0047] S101: Generate a cache resource directory, which records the network feature identifier corresponding to the cache resource when downloading each cache resource; generally, the local cache resources are downloaded from the network to the local, so when downloading For a certain network resource, the network feature identifier corresponding to the resource can be known, such as the network storage path, the network name of the resource, the download path of the resource, etc. This type of information can be used as part of the resource attribute information. In this step, sort out all the resources in the local cache, and generate a cache resource directory according to the network feature identifier of each cache resource. Preferably, the network feature identifier includes URL (Uniform...

Embodiment 2

[0056] For mobile phones, tablet computers, in-vehicle entertainment devices, etc., they cannot access WiFi regardless of traffic in real time. If local traffic is used to download resources when updating resources, high costs will inevitably be incurred. To avoid the above problems, as figure 2 As shown, in this embodiment, the step of S105 can be realized in the following manner:

[0057] S201: Save the download path of the update resource in a list to be downloaded.

[0058] S202: Detect the network environment.

[0059] S203: Whether an available WiFi is detected, if so, go to step S204, otherwise return to step S202.

[0060] S204: Download the update resource according to the download path.

[0061] That is, first save the download path of the update resource, and then trigger the download operation when an available WiFi is detected, so as to avoid wasting local traffic.

Embodiment 3

[0063] Such as image 3 As shown, this embodiment provides an apparatus for automatically updating local cache resources, including:

[0064] The local directory generation module 301 generates a cached resource directory, which records the network feature identifier corresponding to the cached resource when downloading each cached resource; generally, the local cached resources are all downloaded from the network to the local , so when downloading a certain network resource, the network feature identifier corresponding to the resource can be obtained, such as the network storage path, the network name of the resource, the download path of the resource, etc. This type of information can be used as part of the resource attribute information. In this step, sort out all the resources in the local cache, and generate a cache resource directory according to the network feature identifier of each cache resource. Preferably, the network feature identifier includes URL (Uniform Resou...

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 embodiment of the invention provides a method and device for automatically updating local cache resources. A cache resource catalog is generated; a network feature identity corresponding to the cache resource when each cache resource is downloaded is recorded in the cache resource catalog; the network feature identity of each cache resource is also recorded in a received network resource catalog; the difference between the cache resource catalog and the network resource catalog is judged based on comparison of the network feature identities; the network feature identities of updated resources are determined; downloading paths of the updated resources are further determined; the updated resources are downloaded according to the downloading paths; and after the updated resources are associated with the network feature identities, the updating resources are stored to the local. Which content is updated can be automatically and accurately determined through comparison of the network resources and the local cache resources according the network identities when the resources are downloaded, the same resources are prevented from being downloaded repeatedly, and the updating efficiencyis effectively improved.

Description

technical field [0001] The present invention relates to the technical field of information processing, in particular to a method and device for automatically updating local cache resources. Background technique [0002] In existing terminal devices, in order to save local traffic, some available resources, such as music, video, and pictures, are often downloaded and cached locally through the network in advance. However, as time goes by, the resources on the network are updated very quickly. If the local cache resources are not updated in time, it will soon be unable to meet the needs of users. However, due to the particularity of the network environment and update requirements, some terminal devices hope to cache existing network resource downloads locally as much as possible, and regularly update the local cache resources. The existing automatic update method will download all network resources. , resulting in very low update efficiency. If the user artificially makes a ...

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/08G06F17/30
CPCG06F16/955H04L67/5682
Inventor 刘炜
Owner FAFA AUTOMOBILE (CHINA) 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