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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com