Data caching method and device
A data caching and caching technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem of high dependence and achieve the effect of improving the dependence situation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] Embodiment 1 of the present invention discloses a data caching method. The method is applied to electronic devices, for example, it can be specifically applied to mobile devices such as smart phones and tablet computers. Refer to figure 1 , the method may include the following steps:
[0048] S101: Determine whether the electronic device meets a preset cache enablement condition; the cache enablement condition includes: the electronic device establishes a connection with a server.
[0049] In order to solve the problem that the mobile terminal is highly dependent on the network environment when experiencing network data services in the prior art, this application considers that when the mobile terminal meets the preset conditions (such as the mobile terminal establishes a connection with the network in a predetermined way), Obtain and cache the required network data on the mobile terminal in advance, so as to provide support for the subsequent experience of network-side...
Embodiment 2
[0060] In this example, refer to figure 2 , the data caching method may also include the following steps:
[0061] S201: Determine whether the electronic device meets a preset cache closing condition;
[0062] S202: Stop obtaining the data content of the target object from the server if the condition for disabling the cache is met.
[0063] This embodiment continues to supplement the method of Embodiment 1. When the mobile terminal meets the cache opening condition and obtains and caches the required network data from the network server based on the current network connection, this embodiment adds a cache closing method. In the judging link, when the mobile terminal is detected in real time and judged to meet the preset cache closing condition, the current network data acquisition and cache operations are stopped.
[0064] Specifically, the condition for disabling the cache may be that the number of cached web pages or traffic consumption reaches a corresponding set thresho...
Embodiment 3
[0066] In this example, refer to image 3 , the data caching method may also include the following steps:
[0067] S301: Determine whether the electronic device meets a preset cache clearing condition;
[0068] S302: If the cache clearing condition is met, clear the data content of the target object from the electronic device.
[0069] The cache of network data needs to occupy the storage space of the mobile terminal. Based on this, this embodiment adds a cache clearing strategy for network data. Specifically, this embodiment presets the cache clearing conditions and detects in real time whether the mobile terminal meets the cache clearing conditions, so as to realize timely clearing of network data in the cache area of the mobile terminal to ensure that the mobile terminal has sufficient cache space , to support the update cache process of subsequent network data.
[0070] Wherein, the cache clearing condition may be that the time interval between the current moment and ...
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