WO2017124972A1 - 一种资源缓存管理方法及系统和装置 - Google Patents
一种资源缓存管理方法及系统和装置 Download PDFInfo
- Publication number
- WO2017124972A1 WO2017124972A1 PCT/CN2017/071126 CN2017071126W WO2017124972A1 WO 2017124972 A1 WO2017124972 A1 WO 2017124972A1 CN 2017071126 W CN2017071126 W CN 2017071126W WO 2017124972 A1 WO2017124972 A1 WO 2017124972A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cache
- resource
- application
- policy
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Definitions
- the present application relates to the field of communications technologies, and in particular, to a resource cache management method, system, and apparatus.
- the Internet application based on the mobile terminal when it starts up, it may need to load some data, which needs to be downloaded from the application server on the network side.
- the news browsing application needs to load the webpage at startup, and the webpage may include multimedia such as pictures.
- Information the amount of information is usually large, resulting in slower loading, especially in the case of poor network conditions, which will affect the user experience, and even cause the Internet application to be unusable.
- the data that the Internet application needs to use can be cached, and when the Internet application starts, the cached data is used for loading.
- This method can improve the loading efficiency of Internet applications.
- the memory overhead of the mobile terminal is too large, which affects the operating efficiency of the Internet application, and cannot achieve the purpose of improving the user experience, or even Causes Internet applications to be unusable.
- the embodiment of the present application provides a resource cache management method, system, and device.
- the resource cache policy is configured for the application in advance, and the resource cache policy configured for one application is one of N resource cache policies, where N is an integer greater than 1.
- the received data resource is cached according to the obtained resource cache policy.
- the buffering the received data resource according to the obtained resource cache policy comprises:
- the received data resource is cached according to the obtained resource cache policy.
- the method further includes:
- the received data resource is cached according to the obtained resource cache policy.
- the resource cache policy corresponding to an application includes:
- a first resource caching policy that defines all data resources that cache the application
- the third resource cache policy defines a cache for the data resource of the application that is initially received.
- the received data resource is cached
- the obtained resource cache policy is the second resource cache policy, if the received data resource is a data resource of a specified part of the application, the received data resource is cached;
- the received data resource When the source is the data resource first received by the application, the received data resource is cached.
- the second resource cache policy is specifically used to define one or a combination of partial page content in a cached webpage or a public file used by a webpage.
- the data resource caching policy corresponding to the application is configured for the application according to one or a combination of a category, a data resource cost, and a usage frequency of the application.
- the method further includes: updating, according to a state change of the application, a data resource caching policy corresponding to the application.
- the method further includes: managing the cached data resource and/or controlling the buffering operation of the data resource according to the pre-configured cache management policy and the statistically obtained network state and/or device running state.
- the data resource is released preferentially for the application to which the data resource with the longest cache time belongs, and/or the application with the largest amount of cache data.
- the managing the cached data resource and/or controlling the buffering operation of the data resource according to the pre-configured cache management policy and the statistically obtained network state and/or device running state including:
- the cached data resource is managed and/or the cache operation is controlled by using a cache management policy corresponding to the corresponding level.
- the cached data resources are managed by one or any combination of the following operations:
- the first release operation includes: releasing, for all or part of an application of the data resource cache by using the first resource cache policy, releasing the data resource of the application, wherein the first resource cache policy defines to cache the application All data resources;
- the second release operation includes: releasing all or a part of the application of the data resource cache by using the second resource cache policy, releasing the data resource of the application, where
- the second resource cache policy defines a part of the data resource that caches the application;
- the third release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the third resource cache policy, wherein the third resource cache policy definition is for initial reception The data resources of the application are cached.
- the caching operation is controlled by one or any combination of the following operations, including:
- the managing the cached data resources comprises:
- the cache management level is determined to be the highest level based on the network status and/or device operation status obtained by the statistics, then:
- the second release operation and/or the third release operation are performed.
- the cache management level is the highest level:
- the available memory of the device memory is lower than the set threshold
- the CPU usage of the device is higher than the set threshold.
- the uplink and downlink transmission rates are higher than a set threshold
- the packet loss rate is below the set threshold.
- the statistically obtained network status includes one or any combination of the following information: a network connection type, an uplink and downlink transmission rate, and a packet loss rate.
- the statistically obtained device running status includes one or any combination of the following information: device memory available capacity, CPU usage.
- the resource cache management system includes: a cache configuration module, a cache management module, and N cache modules, where N is an integer greater than one;
- the cache configuration module is configured to configure a resource cache policy for the application; Use the configured resource cache policy as one of the N resource cache policies;
- the cache management module is configured to receive a data resource, obtain a resource cache policy corresponding to the application according to the application to which the data resource belongs, and perform, according to the obtained resource cache policy, a cache module that executes the corresponding resource cache policy to receive the Data resources are cached.
- the cache configuration module is further configured to: configure an upper limit of a cache capacity of the data resource;
- the cache management module is specifically configured to: after receiving the data resource, determine, according to the buffer capacity of the data resource configured by the cache configuration module, whether the data volume of the currently cached data resource reaches the upper limit of the cache capacity, and if not, Then, according to the obtained resource cache policy, the cache module that executes the corresponding resource cache policy caches the received data resource.
- the cache management module is further configured to:
- the abandon indication cache module caches the received data resource
- the cache module After releasing the partially cached data resource according to the cache time of the data resource, the cache module that executes the corresponding resource cache policy according to the obtained resource cache policy caches the received data resource.
- the N cache modules include a first cache module, a second cache module, and a third cache module;
- the resource cache policy configured by the cache configuration module for an application includes:
- a first resource caching policy that defines all data resources that cache the application
- a second resource caching policy that defines a data resource that caches a specified portion of the application
- the third resource cache policy defines a cache for the data resource of the application that is initially received.
- the cache management module is specifically configured to:
- the first cache module is instructed to perform data resource caching
- the second cache module is instructed to perform data resource caching
- the third cache module is instructed to perform data resource cache.
- the second resource caching policy is specifically used to define one or a combination of partial page content in a cached webpage or a public file used by a webpage.
- the cache configuration module is specifically configured to: configure a data resource cache policy for the application according to one or a combination of an application category, a data resource cost, and a usage frequency.
- the cache configuration module is further configured to: update a data resource cache policy corresponding to the application according to a state change of the application.
- the method further includes: a network status reporting module and/or a device status reporting module;
- the network status reporting module is configured to report and report the network status to the cache management module.
- the device status reporting module is configured to report and report the running status of the device to the cache management module.
- the cache configuration module is further configured to: configure a cache management policy
- the cache management module is further configured to: cache the data according to the cache management policy configured by the cache configuration module, and the network status reported by the status statistics module and/or the device running status reported by the device status report module
- the resource manages and/or controls the caching operation of the cache module.
- the cache management module is further configured to: acquire an application to which the data resource with the longest cache time reported by the cache module belongs, and/or an application with the largest amount of cached data;
- the cache management module is specifically configured to: when managing the cached data resource, preferentially release the data resource for the application to which the data resource with the longest cache time belongs, and/or the application with the largest cache data amount.
- the cache management module is specifically configured to:
- the cache management policy corresponding to the corresponding level is adopted,
- the cached data resources are managed and/or the cache operations of the cache module are controlled.
- the cache management module is specifically configured to:
- the cached data resource is managed and/or the cache operation of the cache module is controlled by one or any combination of the following operations:
- the first release operation includes: releasing, for all or part of an application of the data resource cache by using the first resource cache policy, releasing the data resource of the application, wherein the first resource cache policy defines to cache the application All data resources;
- the second release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the second resource cache policy, wherein the second resource cache policy defines to cache the application Part of the data resources;
- the third release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the third resource cache policy, wherein the third resource cache policy definition is for initial reception The data resources of the application are cached.
- the cache management module is specifically configured to control the cache operation by one or any combination of the following operations:
- the cache management module is specifically configured to:
- the cache management level is the highest level according to the network status reported by the network status reporting module and/or the device running status reported by the device status reporting module, then:
- the second release operation and/or the third release operation are performed.
- the cache management level is the highest level:
- the available memory of the device memory is lower than the set threshold
- the CPU usage of the device is higher than the set threshold.
- the uplink and downlink transmission rates are higher than a set threshold
- the packet loss rate is below the set threshold.
- the network status reported by the network status reporting module includes one or any combination of the following information: a network connection type, an uplink and downlink transmission rate, and a packet loss rate.
- the device running status reported by the device status reporting module includes one or any combination of the following information: device memory available capacity, CPU usage.
- a memory for storing computer program instructions
- a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
- the resource cache policy corresponding to the application where the resource cache policy is configured for the application, and the resource cache policy configured for one application is one of N resource cache policies, where N is greater than An integer of 1;
- the received data resource is cached according to the obtained resource cache policy.
- the resource cache policy corresponding to the application is obtained according to the application to which the data resource belongs, and the received data resource is cached according to the obtained resource cache policy.
- the resource cache policy may be configured in advance for the application, and the resource cache policy configured for one application is one of N resource cache policies. In this way, different resource caching policies can be configured for different applications as needed, for example, all data resources of an application can be cached, some data resources of an application can be cached, and data acquired for an application can be obtained for the first time. Resources are cached to keep the application running At the same time of performance, the terminal memory overhead is taken into account.
- FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present application.
- FIG. 2 is a schematic flowchart of a resource cache management process according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a process of setting a resource cache policy according to an embodiment of the present application
- FIG. 4 is a schematic structural diagram of a resource cache management system according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a resource cache management system according to another embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
- FIG. 1 exemplarily shows a schematic diagram of a network architecture to which the embodiment of the present application is applied.
- the network architecture may include a terminal and a server on the network side, and the terminal and the server communicate through the network.
- An Internet application client program is installed on the terminal in the above architecture, and an Internet application server program is installed on the server.
- the terminal and the server cooperate to obtain data resources required by the Internet application from the server, and implement the services provided by the Internet application.
- the terminal in the network architecture may be a mobile terminal or a PC (Personal Computer), and the mobile terminal may be a mobile phone, a PDA (Personal Digital Assistant), or a smart wearable device.
- PC Personal Computer
- PDA Personal Digital Assistant
- the terminal and the server can exchange information through the network, and the network can be a wide area network, a local area network or the Internet, or an Internet using mobile communication technology.
- the terminal can access the Internet wirelessly, and the server is usually connected to the Internet by wire.
- the terminal and the server can adopt cloud computing technology to implement information processing based on powerful functions of the cloud computing technology.
- Servers and terminals can use cloud-based technology-based operating systems, such as YunOS, to consolidate cloud and terminal resources and services.
- a resource caching policy may be configured in advance for an application (such as an Internet application).
- the resource cache policy configured for one application is one of N resource cache policies, and N is an integer greater than 1.
- the resource cache policy corresponding to the application is obtained according to the application to which the received data resource belongs, and the received data resource is cached according to the obtained resource cache policy.
- the data resource of an application refers to data and/or programs required for the application to run, for example, for a news browsing application, a page, a navigation bar in the page, and a picture in the page.
- the Java Scrip code used by this page, the CSS (Cascading Style Sheets) file used by this page can be called the data resource of the news browsing application.
- the resource cache management process provided by the embodiment of the present application may be as shown in FIG. 2, and includes the following steps:
- Step 201 Receive a data resource.
- Step 202 Obtain a resource cache policy corresponding to the application according to an application to which the data resource belongs.
- Step 203 Cache the received data resource according to the obtained resource cache policy.
- the embodiments of the present application provide three resource caching strategies.
- the three resource caching strategies are:
- a first resource caching policy defining all data resources that cache the application
- the second resource caching policy that defines a data resource that caches a specified portion of the application.
- the second resource cache policy is specifically used to define one or a combination of partial page content in a cached webpage or a public file used by a webpage.
- a third resource caching policy that defines a cache of data for the application that was first received after each boot.
- the resource cache policy may be preset, or may be transmitted by the server, or may be set by the user according to requirements. Of course, it can also be a combination of the above various methods.
- the embodiment of the present application also allows the resource cache policy to be updated, for example, the server transmits the updated resource cache policy to the terminal, or allows the user to set or modify the resource cache policy through the provided resource cache policy setting interface. For example, the server sends a resource cache policy to the terminal.
- the server may send a resource cache configuration command to the terminal, and the terminal may notify the terminal.
- the resource cache policy when configured for the application, the resource cache policy may be configured for the application according to one or a combination of the category, the data resource cost, the frequency of use, and the like of the application.
- a third resource caching policy can be set for the application, which can reduce the data resource acquisition delay at each startup and improve the loading efficiency; for example, An application with a large data resource can set a second resource cache policy for the application, so that the data resource acquisition delay is reduced while not occupying too much memory; for example, for an application that is frequently used (that is, the user frequently uses)
- the application may be configured with a first resource cache policy for the application to cache all data resources of the application to meet user usage requirements and reduce data resource acquisition delay.
- the resource cache policy may be configured for the application according to the agreed configuration rule.
- the configuration rule may specify a correspondence between the application type and the resource cache policy, and may also specify conditions corresponding to different resource cache policies, such as defining data resources.
- the cost threshold is used to set the second resource cache policy for the application when the data resource cost of the application is greater than the threshold.
- the network side can send updated configuration rules to the terminal.
- the embodiment of the present application also allows the user to set the configuration rule by itself, or allows the user to set a resource cache policy for the application.
- FIG. 3 exemplarily shows a process in which a user sets a resource caching policy for an application according to a setting interface provided by a resource cache management system. As shown in Figure 3, the user can select an application that needs to set a resource cache policy in the Select Application interface, and select a resource cache policy for the application in the Configure Resource Cache Policy interface that is subsequently opened.
- the data resource caching policy corresponding to the application may be updated according to the state change of the application.
- the state change of the application may include one or more combinations of the frequency of the application being used, the change of the data resource cost required by the application, and the like. This can better meet the user's needs for the application while balancing application performance and memory usage.
- the data volume of the currently cached data resource may be determined according to the upper limit of the cached capacity of the configured data resource, and if not, the resource cache policy is obtained according to the obtained resource resource. Cache the received data resources.
- the received data resource is discarded, so that the terminal memory overhead is excessively avoided.
- the received resource cache policy is received according to the obtained resource cache policy. The data resources are cached, so that the memory overhead of the terminal is too large, and the data resources of some applications can be cached, thereby achieving the balance between application performance and memory.
- the resource cache policy corresponding to the application is obtained according to the application to which the data resource belongs, and according to the obtained resource cache policy.
- Received data resources are cached.
- the resource cache policy may be configured in advance for the application, and the resource cache policy configured for one application is one of N resource cache policies.
- different resource caching policies can be configured for different applications as needed, for example, all data resources of an application can be cached, some data resources of an application can be cached, and data acquired for an application can be obtained for the first time.
- the resources are cached to ensure the running performance of the application while taking into account the terminal memory overhead.
- the network status may also be counted, and/or the device running status may be counted.
- the network status information may include one or any combination of the following types: a network connection type (such as a wireless local area network connection or a cellular network connection), an uplink and downlink transmission rate, a packet loss rate, or a network determined according to the foregoing information.
- the status level (such as the network status level may include: good status, poor status, and very poor status); the device operating status information includes one or any combination of the following information: device memory available capacity, CPU usage, or according to the above
- the device status level determined by the information (such as the device status level may include: a tight memory state, a good memory state, and a free memory state).
- the cache management policy can also be configured, and the cached data resources can be managed and/or cached according to the configured cache management policy, and the network status and/or device running status. For control.
- the operations for managing the cached data resources may include, but are not limited to:
- the first release operation comprising: releasing data resources of the application for all or part of applications of the data resource cache using the first resource cache policy;
- the second release operation comprising: releasing all or part of the application of the data resource cache with the second resource cache policy, releasing the data resource of the application;
- the third release operation comprising: releasing the data resource of the application for all or part of the application of the data resource cache using the third resource cache policy.
- a memory resource is in a state of tension (such as a memory available capacity below a set threshold)
- the cached data resources are released.
- Controlling the cache operation can include, but is not limited to, the following operations:
- the cache module is closed to stop the data resource cache; when the memory resource is restored from a state of tension to a normal state, the cache is enabled. Module to continue data resource caching.
- the cache management level may be determined according to the network status and/or the device running status, and the cached data resources are managed and/or according to the determined cache management level. Control the caching operations.
- the cache management level can be divided into three levels from high to low:
- Level 1 Indicates that the available memory of the terminal memory is small, the memory is tight, and management operations such as data resource release are required;
- Level 2 indicates that the available memory of the terminal memory is moderate, and the data resources with longer buffering time can be released, that is, part of the data resources are released;
- Level 3 Indicates that the available memory of the terminal is large, and the data resource release operation may not be performed.
- cache management level definition is only an example, and the embodiment of the present application is not only Limited to the cache management level definition defined above.
- the judgment conditions can be set as needed. For example, if one or more of the following conditions are met, the cache management level is the highest level:
- the packet loss rate is below the set threshold.
- the uplink and downlink transmission rate is higher than the set threshold.
- the terminal memory overhead may have an upward trend. Since the current terminal memory available capacity is already low, it is necessary to perform necessary management and control of the data resource cache. For example, the cached data resource can be released, or the data resource cache operation can be further stopped.
- the cache management level if the cache management level is determined to be the highest level according to the network status and/or the device running status, the foregoing first release operation may be performed, and after performing the first release operation, running according to the network status and/or the device. Status, determining whether the cache management level is the highest level; if still the highest level, performing the second release operation and/or the third release operation described above.
- the data resource when the cached data resource is managed, the data resource may be preferentially released for the application to which the data resource with the longest cache time belongs, or the data resource may be released for the application with the largest cached data.
- the data resource release may be preferably performed for the application to which the data resource with the longest cache time belongs and the application with the largest amount of data, and the data resource release may be preferentially performed for the least recently used application.
- the cached data resources can be released by considering the cache time, the amount of cached data, and the frequency of use, for example, releasing data resources for applications with the largest amount of cached data in applications with long cache times, or buffering data amounts.
- the application with the longest cache time in a larger application releases data resources.
- the data resource buffered by the first cache policy may be preferentially released, and the data resource buffered by the second cache policy may be released moderately (that is, for the data resource cached by the second cache policy, Free some of the data resources)
- the data resource may be controlled according to the Expire attribute and the Cache-Control attribute of the data resource defined in the HTTP protocol. Release.
- the cached data resource is managed and/or the data resource is cached according to the pre-configured cache management policy and the statistically obtained network state and/or device running state. It is possible to balance the application performance and memory when the available memory of the terminal memory is small and whether the data resources are cached.
- the embodiment of the present application further provides a resource cache management system, which may be implemented by software or by a combination of software and hardware.
- the system can be integrated inside the mobile terminal.
- FIG. 4 is a schematic structural diagram of a resource cache management system according to an embodiment of the present disclosure.
- the system may include: a cache configuration module 41, a cache management module 42, and N cache modules, where N is greater than 1.
- the cache configuration module 41 can provide a cache capability JS API for application development, and can implement a resource cache policy configuration operation by calling the JS API.
- the cache configuration module 41 is configured to configure a resource cache policy for the application, where the resource cache policy configured for one application is one of N resource cache policies.
- the cache management module 42 is configured to receive a data resource, obtain a resource cache policy corresponding to the application according to the application to which the data resource belongs, and instruct, according to the obtained resource cache policy, a cache module that executes the corresponding resource cache policy to receive the data. Resources are cached.
- the cache configuration module 41 is further configured to: configure a cache capacity upper limit of the data resource.
- the cache management module 42 is specifically configured to: after receiving the data resource, determine, according to the buffer capacity of the data resource configured by the cache configuration module, whether the data volume of the currently cached data resource reaches the upper limit of the cache capacity, if not If yes, the cache module that executes the corresponding resource cache policy according to the obtained resource cache policy caches the received data resource.
- the cache management module 42 is further configured to: if it is determined that the data volume of the currently cached data resource reaches the upper limit of the cache capacity, discard the indication data module to receive the data The source caches; or, after releasing the partially cached data resource according to the cache time of the data resource, the cache module that executes the corresponding resource cache policy according to the obtained resource cache policy caches the received data resource.
- the resource cache policy configured by the cache configuration module for an application includes:
- a first resource caching policy that defines all data resources that cache the application
- a second resource caching policy that defines a data resource that caches a specified portion of the application
- the third resource cache policy defines a cache for the data resource of the application that is initially received.
- the first cache module 43 uses the first resource cache policy for data resource cache
- the second cache module 44 uses the second resource cache policy for data resource cache
- the third cache module 45 uses the third resource cache policy for resource cache.
- the cache management module 42 is specifically configured to:
- the first cache module is configured to perform data resource cache; and if the obtained resource cache policy is the second resource cache policy, the second cache module is instructed to perform data resource cache; If the obtained resource cache policy is the third resource cache policy, the third cache module is instructed to perform data resource cache.
- the second resource cache policy is specifically used to define one or a combination of partial page content in a cached webpage or a public file used by a webpage.
- the cache configuration module 41 is specifically configured to: configure a data resource cache policy for the application according to one of a category, a data resource cost, and a usage frequency of the application.
- the cache configuration module 41 is further configured to: update a data resource cache policy corresponding to the application according to a state change of the application.
- the network status reporting module 46 and/or the device status reporting module 47 may be further included;
- the network status reporting module 46 is configured to report and report the network status to the cache management module 42.
- the device status reporting module 47 is configured to report and report the running status of the device to the cache management module 42.
- the cache configuration module 41 is further configured to: configure a cache management policy, according to the cache management policy configured by the cache configuration module, and the network status reported by the status statistics module and/or the device reported by the device status report module.
- the running state manages the cached data resources and/or controls the caching operations of the cache module.
- the cache management module 41 may be further configured to: acquire an application to which the data resource with the longest cache time reported by the cache module belongs, and/or an application that has the largest amount of cached data; correspondingly, the cache management module 42 may specifically use When the cached data resource is managed, the data resource is released preferentially for the application to which the data resource with the longest cache time belongs, and/or the application with the largest amount of cached data.
- each cache module may report to the cache management module 42 the application to which the data resource with the longest cache time belongs, and/or the application with the largest amount of cached data.
- the first cache module 43 may determine the least recently used application according to the LRU (Least Recently Used) algorithm for the data resource of each application that is cached by the first resource cache policy, and the related information of the application ( For example, the application name or the application ID, etc., is reported to the cache management module 42.
- Each cache module can be reported according to a set period or time.
- the cache management module 42 may preferentially release the data resource for the application to which the data resource with the longest cache time belongs, or may release the data resource for the application with the largest cached data.
- the cached data resources can be released by considering the cache time, the amount of cached data, and the frequency of use, for example, releasing data resources for applications with the largest amount of cached data in applications with long cache times, or buffering data amounts.
- the application with the longest cache time in a larger application releases data resources.
- the cache management module 42 is specifically configured to: determine a cache management level according to the network status reported by the network status reporting module and/or the device running status reported by the device status reporting module; and determine the cache management level according to the determined
- the cache management policy corresponding to the level is used to manage the cached data resources and/or control the cache operation of the cache module.
- the cache management module 42 can be specifically used to perform one or any combination of the following operations.
- the first release operation includes: releasing, for all or part of an application of the data resource cache by using the first resource cache policy, releasing the data resource of the application, wherein the first resource cache policy defines to cache the application All data resources;
- the second release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the second resource cache policy, wherein the second resource cache policy defines to cache the application Part of the data resources;
- the third release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the third resource cache policy, wherein the third resource cache policy definition is for initial reception The data resources of the application are cached.
- the cache management module 42 is specifically configured to control the cache operation by one or any combination of the following operations:
- the cache management module 42 may be specifically configured to: if the cache management level is determined to be the highest level according to the network status reported by the network status reporting module and/or the device running status reported by the device status reporting module, then: Determining whether the cache management level is the highest according to the network status reported by the network status reporting module and/or the device running status reported by the device status reporting module after the first release operation is performed. Level; if still the highest level, performing the second release operation and/or the third release operation.
- the cache management level is the highest level when one or more of the following conditions are met:
- the available memory of the device memory is lower than the set threshold
- the CPU usage of the device is higher than the set threshold.
- the uplink and downlink transmission rates are higher than a set threshold
- the packet loss rate is below the set threshold.
- the network status reported by the network status reporting module 46 includes one or any combination of the following information: network connection type, uplink and downlink transmission rate, and packet loss rate.
- the device running status reported by the device status reporting module 47 includes one or any combination of the following information: device memory available capacity, CPU usage.
- the embodiment of the present application further provides a terminal.
- FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
- the terminal may generally include a processor 601, a memory 602, and a display 603.
- the processor 601 can be a general purpose processor (such as a microprocessor or any conventional processor, etc.), a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or a transistor logic. Devices, discrete hardware components.
- Memory 602 may specifically include internal memory and/or external memory, such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like, which are well established in the art.
- Display 603 can include touch screen control circuitry.
- the bus architecture may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by processor 601 and various circuits of memory represented by memory 802.
- the bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein.
- the bus interface provides an interface.
- the processor 601 is responsible for managing the bus architecture and general processing, and the memory 602 can store data used by the processor 601 in performing operations.
- the data resource management process disclosed in the embodiment of the present application may be applied to the processor 601 or implemented by the processor 601.
- each step of the picture search process may be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in the form of software.
- the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
- the steps of the method disclosed in the embodiments of the present application may be directly implemented as hardware processor execution, or
- the combination of hardware and software modules in the processor is completed.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the processor 601 is coupled to the memory 602 for reading computer program instructions stored by the memory 602 and, in response, performing the following operations:
- the resource cache policy corresponding to the application where the resource cache policy is configured for the application, and the resource cache policy configured for one application is one of N resource cache policies, where N is greater than An integer of 1;
- the received data resource is cached according to the obtained resource cache policy.
- the processor 601 determines whether the data amount of the currently cached data resource reaches the cache according to the upper limit of the cache capacity of the pre-configured data resource. The upper limit of the capacity; if not, the received data resource is cached according to the obtained resource cache policy.
- the processor 601 determines that the data volume of the currently cached data resource reaches the upper limit of the cache capacity, the processor 601 also discards the buffering of the received data resource; or, after releasing the partially cached data resource according to the cache time of the data resource, The cached data resources are cached according to the obtained resource cache policy.
- the resource cache policy corresponding to an application includes:
- a first resource caching policy that defines all data resources that cache the application
- the third resource cache policy defines a cache for the data resource of the application that is initially received.
- the processor 601 obtains the resource cache policy corresponding to the application according to the application to which the data resource belongs, if the obtained resource cache policy is the first resource cache policy, the received data resource is cached;
- the resource cache policy is a second resource cache policy, and if the received data resource is a data resource of a specified part of the application, the received data resource is cached; if the obtained resource cache policy is the third resource cache
- the policy caches the received data resource if the received data resource is the data resource first received by the application.
- the second resource cache policy is specifically used to define one or a combination of partial page content in a cached webpage or a public file used by a webpage.
- the data resource caching policy corresponding to the application is configured for the application according to one or a combination of a category, a data resource cost, and a usage frequency of the application.
- the processor 601 may further update the data resource caching policy corresponding to the application according to the state change of the application.
- the processor 601 can also manage the cached data resource and/or control the buffering operation of the data resource according to the pre-configured cache management policy and the statistically obtained network state and/or device running state.
- the processor 601 can also obtain an application to which the data resource with the longest cache time belongs, and/or an application with the largest amount of cached data; when managing the cached data resource, the data resource with the longest cache time is preferentially belonged to The application, and/or the application with the largest amount of cached data, is released for data resources.
- the processor 601 can manage the cached data resources and/or control the buffering operation of the data resources according to the pre-configured cache management policy and the statistically obtained network state and/or device running state, and may obtain the network according to statistics.
- the status and/or the running status of the device determine the cache management level; according to the determined cache management level, the cached data resource is managed and/or the cache operation is controlled by using a cache management policy corresponding to the corresponding level.
- the cached data resource may be managed and/or operated by one or any combination of the following operations.
- the cache operation of the cache module is controlled:
- the first release operation includes: releasing, for all or part of an application of the data resource cache by using the first resource cache policy, releasing the data resource of the application, wherein the first resource cache policy defines to cache the application All data resources;
- the second release operation includes: releasing all or a part of the application of the data resource cache by using the second resource cache policy, releasing the data resource of the application, where
- the second resource cache policy defines a part of the data resource that caches the application;
- the third release operation includes: releasing data resources of the application for all or part of application of the data resource cache by using the third resource cache policy, wherein the third resource cache policy definition is for initial reception The data resources of the application are cached.
- the caching operation is controlled by one or any combination of the following operations, including:
- the processor 601 manages the cached data resource, if the cache management level is determined to be the highest level according to the network state and/or the device running state obtained by the statistics, the first release operation is performed, and the performing After the first release operation, determining whether the cache management level is the highest level according to the acquired network status and/or the acquired device running status; if still the highest level, performing the second release operation and/or the third Release operation.
- the cache management level is the highest level:
- the available memory of the device memory is lower than the set threshold
- the CPU usage of the device is higher than the set threshold.
- the uplink and downlink transmission rates are higher than a set threshold
- the packet loss rate is below the set threshold.
- the statistically obtained network status includes one or any combination of the following information: a network connection type, an uplink and downlink transmission rate, and a packet loss rate.
- the statistically obtained device running status includes one or any combination of the following information: device memory available capacity, CPU usage.
- the embodiment of the present application can maximize the running performance, especially for the case of no network connection, the Internet application can use the cached data resource, thereby avoiding the problem that the Internet application cannot be used in the middle case.
- the embodiment of the present application supports multiple resource caching strategies (full cache, partial cache, etc.), and supports dynamic adjustment according to network status, device memory/CPU status, and the like. Cache (such as freeing cached data resources) to maximize balance performance and memory usage.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
一种资源缓存管理方法及系统和装置。该方法包括:在接收到一应用的数据资源后,根据该数据资源所属的应用获取该应用对应的资源缓存策略,并根据获取到的资源缓存策略对接收到的数据资源进行缓存。其中,可预先为该应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种。可根据需要为不同的应用配置不同的资源缓存策略,可对一应用的所有数据资源进行缓存,也可以对一应用的部分数据资源进行缓存,还可以对一应用初次获得的数据资源进行缓存,从而在保证应用运行性能的同时,兼顾了终端内存开销。
Description
本申请涉及通信技术领域,尤其涉及一种资源缓存管理方法及系统和装置。
随着通信技术的发展,为了满足日益增长和多种多样的业务需求,基于移动终端的互联网应用越来越多。
目前,基于移动终端的互联网应用在启动时,有可能需要加载一些数据,这些数据需要从网络侧的应用服务器下载,例如,新闻浏览应用在启动时需要加载网页,且网页中可能包含图片等多媒体信息,其信息量通常较大,导致加载速度较慢,尤其在网络状态较差的情况下,会影响用户的体验,甚至导致该互联网应用无法使用。
为了提高应用加载速度,可以将互联网应用需要使用的数据进行缓存,在该互联网应用启动时,使用缓存的数据进行加载。这种方法可以提高互联网应用的加载效率。但是,考虑到移动终端的内存容量有限,如果大量互联网应用采用上述方式进行数据缓存,则会导致移动终端的内存开销过大,进而影响互联网应用的运行效率,无法达到提高用户体验的目的,甚至导致互联网应用无法使用。
由此可见,如何兼顾移动终端内存容量使用并保证互联网应用性能,是目前亟需解决的问题。
申请内容
本申请实施例提供了一种资源缓存管理方法及系统和装置。
本申请实施例提供的资源缓存管理方法,包括:
接收数据资源;
根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;其
中,预先为应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数;
根据获取到的资源缓存策略对接收到的数据资源进行缓存。
优选地,所述根据获取到的资源缓存策略对接收到的数据资源进行缓存,包括:
根据预先配置的数据资源的缓存容量上限,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限;
若未达到,则根据获取到的资源缓存策略对接收到的数据资源进行缓存。
进一步地,若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则还包括:
放弃对接收到的数据资源进行缓存;或者,
根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略对接收到的数据资源进行缓存。
优选地,一个应用对应的资源缓存策略包括:
第一资源缓存策略,定义缓存该应用的所有数据资源;或者,
第二资源缓存策略,定义缓存该应用的部分数据资源;或者,
第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
其中,所述根据所述数据资源所属的应用获取所述应用对应的资源缓存策略,包括:
若获取到的资源缓存策略为第一资源缓存策略,则缓存接收到的数据资源;
若获取到的资源缓存策略为第二资源缓存策略,则在接收到的数据资源为所属应用的指定部分的数据资源的情况下,缓存接收到的数据资源;
若获取到的资源缓存策略为第三资源缓存策略,则在接收到的数据资
源为所属应用初次接收的数据资源的情况下,缓存接收到的数据资源。
其中,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
优选地,所述应用对应的数据资源缓存策略是根据该应用的类别、数据资源开销、使用频次中的一种或组合,为该应用配置的。
进一步地,还包括:根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行更新。
进一步地,还包括:根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作。
进一步地,还包括:
获取缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;
对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
优选地,所述根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作,包括:
根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级;
根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对缓存操作进行控制。
优选地,通过以下操作之一或任意组合,对缓存的数据资源进行管理:
第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;
第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所
述第二资源缓存策略定义缓存该应用的部分数据资源;
第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
优选地,通过以下操作之一或任意组合,对缓存操作进行控制,包括:
停止或恢复采用所述第一资源缓存策略进行数据资源缓存;
停止或恢复采用所述第二资源缓存策略进行数据资源缓存;
停止或恢复采用所述第三资源缓存策略进行数据资源缓存。
优选地,所述对缓存的数据资源进行管理,包括:
若根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级为最高等级,则:
执行所述第一释放操作,并在执行所述第一释放操作后,根据获取的网络状态和/或获取的设备运行状态,判断缓存管理等级是否为最高等级;
若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
其中,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:
设备内存可用容量低于设定门限;
设备CPU占用率高于设定门限;
上下行传输速率高于设定门限;
丢包率低于设定门限。
优选地,所述统计得到的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
优选地,所述统计得到的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
本申请实施例提供的资源缓存管理系统,包括:缓存配置模块、缓存管理模块,以及N个缓存模块,N为大于1的整数;
所述缓存配置模块,用于为应用配置资源缓存策略;其中,为一个应
用配置的资源缓存策略为N种资源缓存策略中的一种;
所述缓存管理模块,用于接收数据资源,根据所述数据资源所属的应用获取所述应用对应的资源缓存策略,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
优选地,所述缓存配置模块还用于:配置数据资源的缓存容量上限;
所述缓存管理模块具体用于:接收到数据资源后,根据所述缓存配置模块配置的数据资源的缓存容量,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限,若未达到,则根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
进一步地,所述缓存管理模块还用于:
若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则放弃指示缓存模块对接收到的数据资源进行缓存;或者,
根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
优选地,所述N个缓存模块包括第一缓存模块、第二缓存模块和第三缓存模;
所述缓存配置模块为一个应用配置的资源缓存策略包括:
第一资源缓存策略,定义缓存该应用的所有数据资源;或者,
第二资源缓存策略,定义缓存该应用的指定部分的数据资源;或者,
第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
其中,所述缓存管理模块具体用于:
若获取到的资源缓存策略为第一资源缓存策略,则指示第一缓存模块进行数据资源缓存;
若获取到的资源缓存策略为第二资源缓存策略,则指示第二缓存模块进行数据资源缓存;
若获取到的资源缓存策略为第三资源缓存策略,则指示第三缓存模块进行数据资源缓存。
优选地,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
优选地,所述缓存配置模块具体用于:根据应用的类别、数据资源开销、使用频次中的一种或组合,为所述应用配置数据资源缓存策略。
进步一地,所述缓存配置模块还用于:根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行更新。
优选地,还包括:网络状态上报模块和/或设备状态上报模块;
所述网络状态上报模块,用于统计并向所述缓存管理模块上报网络状态;
所述设备状态上报模块,用于统计并向所述缓存管理模块上报设备运行状态;
所述缓存配置模块还用于:配置缓存管理策略;
所述缓存管理模块还用于:根据所述缓存配置模块配置的缓存管理策略,以及所述状态统计模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
进一步地,所述缓存管理模块还用于:获取所述缓存模块上报的缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;
所述缓存管理模块具体用于:对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
优选地,所述缓存管理模块具体用于:
根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级;
根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对
缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
优选地,所述缓存管理模块具体用于:
通过以下操作之一或任意组合,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制:
第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;
第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第二资源缓存策略定义缓存该应用的部分数据资源;
第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
优选地,所述缓存管理模块具体用于通过以下操作之一或任意组合,对缓存操作进行控制:
停止或恢复通过第一缓存模块进行数据资源缓存,所述第一缓存模块采用所述第一资源缓存策略进行数据资源缓存;
停止或恢复通过第二缓存模块进行数据资源缓存,所述第二缓存模块采用所述第二资源缓存策略进行数据资源缓存;
停止或恢复通过第三缓存模块进行数据资源缓存,所述第三缓存模块采用所述第三资源缓存策略进行数据资源缓存。
其中,所述缓存管理模块具体用于:
若根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级为最高等级,则:
执行所述第一释放操作,并在执行所述第一释放操作后,根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,判断缓存管理等级是否为最高等级;
若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
其中,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:
设备内存可用容量低于设定门限;
设备CPU占用率高于设定门限;
上下行传输速率高于设定门限;
丢包率低于设定门限。
优选地,所述网络状态上报模块上报的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
优选地,所述设备状态上报模块上报的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
本申请实施例提供的终端,包括:
存储器,用于存储计算机程序指令;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:
接收数据资源;
根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;其中,预先为应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数;
根据获取到的资源缓存策略对接收到的数据资源进行缓存。
本申请的上述实施例中,在接收到一应用的数据资源后,根据该数据资源所属的应用获取该应用对应的资源缓存策略,并根据获取到的资源缓存策略对接收到的数据资源进行缓存。其中,可预先为该应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种。这样,可根据需要为不同的应用配置不同的资源缓存策略,比如,可对一应用的所有数据资源进行缓存,也可以对一应用的部分数据资源进行缓存,还可以对一应用初次获得的数据资源进行缓存,从而在保证应用运行
性能的同时,兼顾了终端内存开销。
图1为本申请实施例适用的系统架构示意图;
图2为本申请一实施例提供的资源缓存管理流程示意图;
图3为本申请实施例中资源缓存策略设置过程示意图;
图4为本申请一实施例提供的资源缓存管理系统的结构示意图;
图5为本申请另一实施例提供的资源缓存管理系统的结构示意图;
图6为本申请实施例提供的终端的结构示意图。
下面结合附图对本申请实施例进行详细描述。
图1示例性地示出了本申请实施例适用的网络架构示意图。如图1所示,该网络架构中可包括终端以及网络侧的服务器,终端和服务器通过网络进行通信。
上述架构中的终端上安装有互联网应用客户端程序,服务器上安装有互联网应用服务器端程序,终端和服务器进行配合,从服务器获取互联网应用所需的数据资源,实现互联网应用所提供的服务。
上述网络架构中的终端可以是移动终端或PC(个人电脑)等设备,所述移动终端可以是手机、PDA(Personal Digital Assistant,掌上电脑)或智能穿戴设备等。
上述网络架构中,终端和服务器可以通过网络进行信息交互,该网络可以是广域网、局域网或互联网,或者采用移动通信技术的互联网。终端可通过无线方式接入互联网,服务器通常采用有线方式与互联网连接。
优选地,终端和服务器可以采用云计算技术,以基于云计算技术的强大功能实现信息处理。服务器和终端可采用基于云计算技术的操作系统,比如YunOS,从而可以整合云端和终端的资源和服务。
本申请实施例中,可预先为应用(如互联网应用)配置资源缓存策略。其中,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数。这样,在接收到数据资源后,可根据接收到的数据资源所属的应用获取该应用对应的资源缓存策略,根据获取到的资源缓存策略对接收到的数据资源进行缓存。其中,一个应用的数据资源,是指该应用运行时所需的数据和/或程序等,例如,对于新闻浏览应用来说,一个页面,该页面中的导航栏,该页面中的一个图片,该页面使用的Java Scrip代码,该页面使用的CSS(Cascading Style Sheets,层叠样式表单)文件,都可以称为该新闻浏览应用的数据资源。
本申请实施例提供的资源缓存管理流程可如图2所示,包括如下步骤:
步骤201:接收数据资源。
步骤202:根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;
步骤203:根据获取到的资源缓存策略对接收到的数据资源进行缓存。
优选地,本申请实施例提供了三种资源缓存策略,具体来说,这三种资源缓存策略分别为:
-第一资源缓存策略,定义缓存该应用的所有数据资源;
-第二资源缓存策略,定义缓存该应用的指定部分的数据资源。其中,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
-第三资源缓存策略,定义针对每次启动后初次接收到的该应用的数据资源进行缓存。
本申请实施例中,资源缓存策略可以是预先设置的,也可以是服务器传输过来的,还可以是用户根据需要设置的。当然也可以是上述各种方式的结合。本申请实施例还允许对资源缓存策略进行更新,比如由服务器传输更新的资源缓存策略给终端,也可以允许用户通过提供的资源缓存策略设置界面对资源缓存策略进行设置或修改。以服务器向终端发送资源缓存策略为例,服务器可向终端发送资源缓存配置命令,通过该命令可通知终
端需要进行资源缓存的应用以及针对需要进行资源缓存的应用所采用的资源缓存策略。
优选地,为应用配置资源缓存策略时,可根据该应用的类别、数据资源开销、使用频次等中的一种或组合,为该应用配置资源缓存策略。比如,对于启动时加载数据较大的应用,例如新闻流量应用,可为该应用设置第三资源缓存策略,这样可降低每次启动时的数据资源获取时延,提高加载效率;再例如,对于数据资源较大的应用,可为该应用设置第二资源缓存策略,这样在降低数据资源获取时延的同时还不至于占用太多内存;再例如,对于使用频次高的应用(即用户经常使用的应用),可为该应用设置第一资源缓存策略,以便将该应用的所有数据资源进行缓存,满足用户的使用需求,降低数据资源获取时延。当然也可以根据应用需求以及终端的内存容量大小,将上述各种设置资源缓存策略时考虑的依据相互结合使用。需要说明的是,上述仅列举了部分设置资源缓存策略时考虑的依据,本申请实施例不能够不仅限于上述所列举的依据。
在具体实施时,可根据约定的配置规则为应用配置资源缓存策略,该配置规则中可规定应用类型与资源缓存策略的对应关系,也可以规定不同资源缓存策略所对应的条件,比如定义数据资源开销门限,当某应用的数据资源开销大于该门限时需要为该应用设置第二资源缓存策略。网络侧可以将更新的配置规则发送给终端。为了满足用户的个性化需求,本申请实施例还允许用户对配置规则进行自行设置,或者允许用户自行为应用设置资源缓存策略。图3示例性地示出了用户根据资源缓存管理系统提供的设置界面为应用设置资源缓存策略的过程。如图3所示,用户可在“选择应用程序”界面中选择需要设置资源缓存策略的应用程序,在后续打开的“配置资源缓存策略”界面中为该应用选择一种资源缓存策略。
进一步地,还可根据应用的状态变化,对该应用对应的数据资源缓存策略进行更新。其中,应用的状态变化可包括:应用被使用的频次的变化、应用所需的数据资源开销的变化等中的一种或多种组合。这样可以在平衡应用性能和内存使用的情况下,更好地满足用户对应用的使用需求。
为了更好地平衡应用性能和内存使用,在一些优选的实施例中,还可
以配置数据资源的缓存容量上限。相应地,在接收到数据资源后,可根据配置的数据资源的缓存容量上限,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限,若未达到,则根据获取到的资源缓存策略对接收到的数据资源进行缓存。
进一步地,在另一些实施例中,若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则放弃对接收到的数据资源进行缓存,这样可避免终端内存开销过大。在另一些实施例中,若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略对接收到的数据资源进行缓存,这样可避免终端内存开销过大的同时,还可以对一些应用的数据资源进行缓存,从而达到应用性能与内存的平衡。
通过以上描述可以看出,本申请的上述实施例中,在接收到一应用的数据资源后,根据该数据资源所属的应用获取该应用对应的资源缓存策略,并根据获取到的资源缓存策略对接收到的数据资源进行缓存。其中,可预先为该应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种。这样,可根据需要为不同的应用配置不同的资源缓存策略,比如,可对一应用的所有数据资源进行缓存,也可以对一应用的部分数据资源进行缓存,还可以对一应用初次获得的数据资源进行缓存,从而在保证应用运行性能的同时,兼顾了终端内存开销。
进一步地,本申请实施例中,还可统计网络状态,和/或,统计设备运行状态。其中,网络状态信息可包括以下信息中的一种或任意组合:网络连接类型(比如:无线局域网连接或蜂窝网连接)、上下行传输速率,丢包率,或者是根据上述信息确定出的网络状态等级(比如网络状态等级可包括:状态良好、状态较差和状态极差);设备运行状态信息包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率,或者是根据上述信息确定出的设备状态等级(比如设备状态等级可包括:内存状态紧张、内存状态良好、内存状态空闲)。
相应地,还可配置缓存管理策略,并根据配置的缓存管理策略,以及网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或对缓存操
作进行控制。
其中,对缓存的数据资源进行管理的操作可包括但不限于:
-第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源;
-第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源;
-第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源。
例如,在内存资源处于紧张状态(如内存可用容量低于设定门限)的情况下,释放缓存的数据资源。
对缓存操作进行控制可包括但不限于以下操作:
-停止或恢复采用第一资源缓存策略进行数据资源缓存;
-停止或恢复采用第二资源缓存策略进行数据资源缓存;
-停止或恢复采用第三资源缓存策略进行数据资源缓存。
例如,在内存资源处于紧张状态(如内存可用容量低于设定门限)的情况下,关闭缓存模块,以停止进行数据资源缓存;在内存资源从紧张状态恢复到正常状态的情况下,开启缓存模块,以继续进行数据资源缓存。
在另一些实施例中,可根据网络状态和/或设备运行状态,确定缓存管理等级,根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对缓存操作进行控制。
其中,优选地,缓存管理等级从高到低可分为三级:
一级:表明终端内存可用容量较少,内存紧张,需要进行数据资源释放等管理操作;
二级:表明终端内存可用容量适中,可对缓存时间较长的数据资源进行释放,即释放部分数据资源;
三级:表明终端内存可用容量较多,可不进行数据资源释放操作。
当然,以上缓存管理等级的定义仅为一种示例,本申请实施例并不仅
限于上述定义的缓存管理等级定义。
在确定缓存管理等级时,可根据需要设置判断条件。举例来说,如果满足以下条件中的一种或多种组合,则缓存管理等级为最高等级:
-设备内存可用容量低于设定门限;
-设备CPU占用率高于设定门限;
-上下行传输速率高于设定门限;
-丢包率低于设定门限。
具体实施时,优选地,可综合网络状态和设备运行状态进行判断。举例来说,如果设备内存可用容量低于设定门限且终端当前通过无线局域网与网络进行通信,此时上下行传输速率高于设定门限,这种情况下,终端内存开销可能存在上升趋势,由于当前终端内存可用容量已经较低,因此需要对数据资源缓存进行必要的管理和控制。比如,可以释放缓存的数据资源,或者进一步停止数据资源缓存操作。
具体实施时,若根据网络状态和/或设备运行状态,确定缓存管理等级为最高等级,则可执行上述第一释放操作,并在执行上述第一释放操作后,根据网络状态和/或设备运行状态,判断缓存管理等级是否为最高等级;若仍为最高等级,则执行上述第二释放操作和/或上述第三释放操作。
在一些实施例中,在对缓存的数据资源进行管理时,可优先针对缓存时间最长的数据资源所属的应用进行数据资源释放,也可以优选针对缓存数据量最大的应用进行数据资源释放,也可以优选针对缓存时间最长的数据资源所属的应用以及数据量最大的应用进行数据资源释放,还可以优先针对近期最少使用的应用进行数据资源释放。当然,还可以综合考虑缓存时间、缓存数据量以及使用频次,对缓存的数据资源进行释放,例如,对缓存时间较长的应用中缓存数据量最大的应用进行数据资源释放,或者对缓存数据量较大的应用中缓存时间最长的应用进行数据资源释放。
作为一个例子,当内存紧张的时候,可优先释放采用第一缓存策略缓存的数据资源,并对采用第二缓存策略缓存的数据资源进行适度释放(即针对采用第二缓存策略缓存的数据资源,释放其中的部分数据资源),而
对于采用第三缓存策略缓存的数据资源,比如所缓存的页面侧边栏(如导航栏),则可根据HTTP协议中定义的该数据资源的Expire属性和Cache-Control属性来控制对该数据资源进行释放。
通过以上描述可以看出,本申请实施例中,根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作,可以在终端内存可用容量较少时,是否缓存的数据资源,实现应用性能与内存的平衡。
基于相同的技术构思,本申请实施例还提供了一种资源缓存管理系统,该系统可由软件实现,也可由软件与硬件相结合的方式实现。该系统可集成在移动终端内部。
参见图4,为本申请实施例提供的资源缓存管理系统的结构示意图,如图所示,该系统可包括:缓存配置模块41、缓存管理模块42,以及N个缓存模块,N为大于1的整数。图4以N=3为例,示出了包括三个缓存模块的资源缓存管理系统,这三个缓存模块分别为:第一缓存模块43、第二缓存模块44和第三缓存模块45。其中,缓存配置模块41可提供给应用开发的缓存能力JS API,通过调用JS API可以实现资源缓存策略的配置操作。
缓存配置模块41,用于为应用配置资源缓存策略;其中,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种;
缓存管理模块42,用于接收数据资源,根据所述数据资源所属的应用获取所述应用对应的资源缓存策略,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
优选地,缓存配置模块41还用于:配置数据资源的缓存容量上限。相应地,缓存管理模块42具体用于:接收到数据资源后,根据所述缓存配置模块配置的数据资源的缓存容量,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限,若未达到,则根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
进一步地,缓存管理模块42还用于:若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则放弃指示缓存模块对接收到的数据资
源进行缓存;或者,根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
优选地,所述缓存配置模块为一个应用配置的资源缓存策略包括:
第一资源缓存策略,定义缓存该应用的所有数据资源;或者,
第二资源缓存策略,定义缓存该应用的指定部分的数据资源;或者,
第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
其中,第一缓存模块43采用第一资源缓存策略进行数据资源缓存,第二缓存模块44采用第二资源缓存策略进行数据资源缓存,第三缓存模块45采用第三资源缓存策略进行资源缓存。
其中,缓存管理模块42具体用于:
若获取到的资源缓存策略为第一资源缓存策略,则指示第一缓存模块进行数据资源缓存;若获取到的资源缓存策略为第二资源缓存策略,则指示第二缓存模块进行数据资源缓存;若获取到的资源缓存策略为第三资源缓存策略,则指示第三缓存模块进行数据资源缓存。
其中,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
优选地,缓存配置模块41可具体用于:根据应用的类别、数据资源开销、使用频次中的一种或组合,为所述应用配置数据资源缓存策略。
优选地,所述缓存配置模块41还可用于:根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行更新。
进一步地,如图5所示,还可包括:网络状态上报模块46和/或设备状态上报模块47;
网络状态上报模块46,用于统计并向缓存管理模块42上报网络状态;
设备状态上报模块47,用于统计并向缓存管理模块42上报设备运行状态。
相应地,缓存配置模块41还可用于:配置缓存管理策略,根据所述缓存配置模块配置的缓存管理策略,以及所述状态统计模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
进一步地,缓存管理模块41还可用于:获取所述缓存模块上报的缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;相应地,缓存管理模块42可具体用于:对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
作为一个例子,各缓存模块可以向缓存管理模块42上报缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用。比如,第一缓存模块43可对采用第一资源缓存策略缓存的每个应用的数据资源,按照LRU(Least Recently Used,近期最少使用)算法确定最近最少使用的应用,将该应用的相关信息(比如应用名称或应用ID等)上报给缓存管理模块42。各缓存模块可按照设定周期或时间进行上报。相应地,缓存管理模块42在对缓存的数据资源进行管理时,可优先针对缓存时间最长的数据资源所属的应用进行数据资源释放,也可以优选针对缓存数据量最大的应用进行数据资源释放,也可以优选针对缓存时间最长的数据资源所属的应用以及数据量最大的应用进行数据资源释放,还可以优先针对近期最少使用的应用进行数据资源释放。当然,还可以综合考虑缓存时间、缓存数据量以及使用频次,对缓存的数据资源进行释放,例如,对缓存时间较长的应用中缓存数据量最大的应用进行数据资源释放,或者对缓存数据量较大的应用中缓存时间最长的应用进行数据资源释放。
优选地,缓存管理模块42可具体用于:根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级;根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
优选地,缓存管理模块42可具体用于通过以下操作之一或任意组合,
对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制:
第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;
第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第二资源缓存策略定义缓存该应用的部分数据资源;
第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
优选地,缓存管理模块42可具体用于通过以下操作之一或任意组合,对缓存操作进行控制:
停止或恢复通过第一缓存模块进行数据资源缓存,所述第一缓存模块采用所述第一资源缓存策略进行数据资源缓存;
停止或恢复通过第二缓存模块进行数据资源缓存,所述第二缓存模块采用所述第二资源缓存策略进行数据资源缓存;
停止或恢复通过第三缓存模块进行数据资源缓存,所述第三缓存模块采用所述第三资源缓存策略进行数据资源缓存。
其中,缓存管理模块42可具体用于:若根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级为最高等级,则:执行所述第一释放操作,并在执行所述第一释放操作后,根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,判断缓存管理等级是否为最高等级;若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
优选地,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:
设备内存可用容量低于设定门限;
设备CPU占用率高于设定门限;
上下行传输速率高于设定门限;
丢包率低于设定门限。
优选地,网络状态上报模块46上报的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
优选地,设备状态上报模块47上报的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
基于相同的技术构思,本申请实施例还提供了一种终端。
参见图6,为本申请实施例提供的终端的结构示意图。该终端总体来说可包括:处理器601,存储器602、显示器603。
其中,处理器601可以是通用处理器(比如微处理器或者任何常规的处理器等)、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。存储器602具体可包括内部存储器和/或外部存储器,比如随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质。显示器603可包括触摸屏控制电路。
处理器601与其他各模块之间存在数据通信连接,比如可基于总线架构进行数据通信。总线架构可以包括任意数量的互联的总线和桥,具体由处理器601代表的一个或多个处理器和存储器802代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。处理器601负责管理总线架构和通常的处理,存储器602可以存储处理器601在执行操作时所使用的数据。
本申请实施例揭示的数据资源管理流程,可以应用于处理器601中,或者由处理器601实现。在实现过程中,图片搜索流程的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用
处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。
具体地,处理器601,耦合到存储器602,用于读取存储器602存储的计算机程序指令,并作为响应,执行如下操作:
接收数据资源;
根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;其中,预先为应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数;
根据获取到的资源缓存策略对接收到的数据资源进行缓存。
优选地,处理器601在根据获取到的资源缓存策略对接收到的数据资源进行缓存时,可根据预先配置的数据资源的缓存容量上限,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限;若未达到,则根据获取到的资源缓存策略对接收到的数据资源进行缓存。
进一步地,处理器601若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则还放弃对接收到的数据资源进行缓存;或者,根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略对接收到的数据资源进行缓存。
其中,一个应用对应的资源缓存策略包括:
第一资源缓存策略,定义缓存该应用的所有数据资源;或者,
第二资源缓存策略,定义缓存该应用的部分数据资源;或者,
第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
相应地,处理器601根据所述数据资源所属的应用获取所述应用对应的资源缓存策略时,若获取到的资源缓存策略为第一资源缓存策略,则缓存接收到的数据资源;若获取到的资源缓存策略为第二资源缓存策略,则在接收到的数据资源为所属应用的指定部分的数据资源的情况下,缓存接收到的数据资源;若获取到的资源缓存策略为第三资源缓存
策略,则在接收到的数据资源为所属应用初次接收的数据资源的情况下,缓存接收到的数据资源。
其中,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
优选地,所述应用对应的数据资源缓存策略是根据该应用的类别、数据资源开销、使用频次中的一种或组合,为该应用配置的。
进一步地,处理器601还可根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行更新。
优选地,处理器601还可根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作。
进一步地,处理器601还可获取缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
优选地,处理器601根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作时,可根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级;根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对缓存操作进行控制。
优选地,处理器601对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制时,可通过以下操作之一或任意组合,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制:
第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;
第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所
述第二资源缓存策略定义缓存该应用的部分数据资源;
第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
优选地,通过以下操作之一或任意组合,对缓存操作进行控制,包括:
停止或恢复采用所述第一资源缓存策略进行数据资源缓存;
停止或恢复采用所述第二资源缓存策略进行数据资源缓存;
停止或恢复采用所述第三资源缓存策略进行数据资源缓存。
其中,处理器601对缓存的数据资源进行管理时,若根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级为最高等级,则执行所述第一释放操作,并在执行所述第一释放操作后,根据获取的网络状态和/或获取的设备运行状态,判断缓存管理等级是否为最高等级;若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
其中,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:
设备内存可用容量低于设定门限;
设备CPU占用率高于设定门限;
上下行传输速率高于设定门限;
丢包率低于设定门限。
优选地,所述统计得到的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
优选地,所述统计得到的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
综上所述,本申请实施例可最大化提升运行性能,尤其针对无网络连接情况下,互联网应用可使用缓存的数据资源,避免了该中情况下无法使用互联网应用的问题。此外,本申请实施例支持多种资源缓存策略(全缓存、部分缓存等),并支持根据网络状态、设备内存/CPU状态等动态调整
缓存(比如释放缓存的数据资源),从而可最大化平衡性能和内存使用。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (35)
- 一种资源缓存管理方法,其特征在于,包括:接收数据资源;根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;其中,预先为应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数;根据获取到的资源缓存策略对接收到的数据资源进行缓存。
- 如权利要求1所述的方法,其特征在于,所述根据获取到的资源缓存策略对接收到的数据资源进行缓存,包括:根据预先配置的数据资源的缓存容量上限,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限;若未达到,则根据获取到的资源缓存策略对接收到的数据资源进行缓存。
- 如权利要求2所述的方法,其特征在于,若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则还包括:放弃对接收到的数据资源进行缓存;或者,根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略对接收到的数据资源进行缓存。
- 如权利要求1所述的方法,其特征在于,一个应用对应的资源缓存策略包括:第一资源缓存策略,定义缓存该应用的所有数据资源;或者,第二资源缓存策略,定义缓存该应用的部分数据资源;或者,第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
- 如权利要求4所述的方法,其特征在于,所述根据所述数据资源所属的应用获取所述应用对应的资源缓存策略,包括:若获取到的资源缓存策略为第一资源缓存策略,则缓存接收到的数据资源;若获取到的资源缓存策略为第二资源缓存策略,则在接收到的数据资源为所属应用的指定部分的数据资源的情况下,缓存接收到的数据资源;若获取到的资源缓存策略为第三资源缓存策略,则在接收到的数据资源为所属应用初次接收的数据资源的情况下,缓存接收到的数据资源。
- 如权利要求4或5所述的方法,其特征在于,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
- 如权利要求1所述的方法,其特征在于,所述应用对应的数据资源缓存策略是根据该应用的类别、数据资源开销、使用频次中的一种或组合,为该应用配置的。
- 如权利要求1所述的方法,其特征在于,还包括:根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行更新。
- 如权利要求1至8中任一项所述的方法,其特征在于,还包括:根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作。
- 如权利要求9所述的方法,其特征在于,还包括:获取缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
- 如权利要求9所述的方法,其特征在于,所述根据预先配置的缓存管理策略以及统计得到的网络状态和/或设备运行状态,对缓存的数据资源进行管理和/或控制数据资源的缓存操作,包括:根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级;根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对缓存操作进行控制。
- 如权利要求9至11中任一项所述的方法,其特征在于,通过以下操作之一或任意组合,对缓存的数据资源进行管理:第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第二资源缓存策略定义缓存该应用的部分数据资源;第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
- 如权利要求9至11中任一项所述的方法,其特征在于,通过以下操作之一或任意组合,对缓存操作进行控制,包括:停止或恢复采用所述第一资源缓存策略进行数据资源缓存;停止或恢复采用所述第二资源缓存策略进行数据资源缓存;停止或恢复采用所述第三资源缓存策略进行数据资源缓存。
- 如权利要求12所述的方法,其特征在于,所述对缓存的数据资源进行管理,包括:若根据统计得到的网络状态和/或设备运行状态,确定缓存管理等级为最高等级,则:执行所述第一释放操作,并在执行所述第一释放操作后,根据获取的网络状态和/或获取的设备运行状态,判断缓存管理等级是否为最高等级;若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
- 如权利要求14所述的方法,其特征在于,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:设备内存可用容量低于设定门限;设备CPU占用率高于设定门限;上下行传输速率高于设定门限;丢包率低于设定门限。
- 如权利要求9所述的方法,其特征在于,所述统计得到的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
- 如权利要求9所述的方法,其特征在于,所述统计得到的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
- 一种资源缓存管理系统,其特征在于,包括:缓存配置模块、缓存管理模块,以及N个缓存模块,N为大于1的整数;所述缓存配置模块,用于为应用配置资源缓存策略;其中,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种;所述缓存管理模块,用于接收数据资源,根据所述数据资源所属的应用获取所述应用对应的资源缓存策略,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
- 如权利要求18所述的系统,其特征在于,所述缓存配置模块还用于:配置数据资源的缓存容量上限;所述缓存管理模块具体用于:接收到数据资源后,根据所述缓存配置模块配置的数据资源的缓存容量,判断当前缓存的数据资源的数据量是否达到所述缓存容量上限,若未达到,则根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
- 如权利要求19所述的系统,其特征在于,所述缓存管理模块还用于:若判断当前缓存的数据资源的数据量达到所述缓存容量上限,则放弃指示缓存模块对接收到的数据资源进行缓存;或者,根据数据资源的缓存时间释放部分缓存的数据资源之后,根据获取到的资源缓存策略指示执行相应资源缓存策略的缓存模块对接收到的数据资源进行缓存。
- 如权利要求18所述的系统,其特征在于,所述N个缓存模块包括第一缓存模块、第二缓存模块和第三缓存模;所述缓存配置模块为一个应用配置的资源缓存策略包括:第一资源缓存策略,定义缓存该应用的所有数据资源;或者,第二资源缓存策略,定义缓存该应用的指定部分的数据资源;或者,第三资源缓存策略,定义针对初次接收到的该应用的数据资源进行缓存。
- 如权利要求21所述的系统,其特征在于,所述缓存管理模块具体用于:若获取到的资源缓存策略为第一资源缓存策略,则指示第一缓存模块进行数据资源缓存;若获取到的资源缓存策略为第二资源缓存策略,则指示第二缓存模块进行数据资源缓存;若获取到的资源缓存策略为第三资源缓存策略,则指示第三缓存模块进行数据资源缓存。
- 如权利要求21或22所述的系统,其特征在于,所述第二资源缓存策略,具体用于定义缓存网页中的局部页面内容或网页所使用的公用文件中的一种或组合。
- 如权利要求18所述的系统,其特征在于,所述缓存配置模块具体用于:根据应用的类别、数据资源开销、使用频次中的一种或组合,为所述应用配置数据资源缓存策略。
- 如权利要求18所述的系统,其特征在于,所述缓存配置模块还用于:根据所述应用的状态变化,对所述应用对应的数据资源缓存策略进行 更新。
- 如权利要求18至25中任一项所述的系统,其特征在于,还包括:网络状态上报模块和/或设备状态上报模块;所述网络状态上报模块,用于统计并向所述缓存管理模块上报网络状态;所述设备状态上报模块,用于统计并向所述缓存管理模块上报设备运行状态;所述缓存配置模块还用于:配置缓存管理策略;所述缓存管理模块还用于:根据所述缓存配置模块配置的缓存管理策略,以及所述状态统计模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
- 如权利要求26所述的系统,其特征在于,所述缓存管理模块还用于:获取所述缓存模块上报的缓存时间最长的数据资源所属的应用,和/或,缓存数据量最大的应用;所述缓存管理模块具体用于:对缓存的数据资源进行管理时,优先针对缓存时间最长的数据资源所属的应用,和/或缓存数据量最大的应用,进行数据资源释放。
- 如权利要求26所述的系统,其特征在于,所述缓存管理模块具体用于:根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级;根据确定出的缓存管理等级,采用相应等级对应的缓存管理策略,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制。
- 如权利要求26至28中任一项所述的系统,其特征在于,所述缓存管理模块具体用于:通过以下操作之一或任意组合,对缓存的数据资源进行管理和/或对所述缓存模块的缓存操作进行控制:第一释放操作,所述第一释放操作包括:针对采用第一资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第一资源缓存策略定义缓存该应用的所有数据资源;第二释放操作,所述第二释放操作包括:针对采用第二资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第二资源缓存策略定义缓存该应用的部分数据资源;第三释放操作,所述第三释放操作包括:针对采用第三资源缓存策略进行数据资源缓存的所有或部分应用,释放该应用的数据资源,其中,所述第三资源缓存策略定义针对初次接收到的该应用的数据资源进行缓存。
- 如权利要求26至28中任一项所述的系统,其特征在于,所述缓存管理模块具体用于通过以下操作之一或任意组合,对缓存操作进行控制:停止或恢复通过第一缓存模块进行数据资源缓存,所述第一缓存模块采用所述第一资源缓存策略进行数据资源缓存;停止或恢复通过第二缓存模块进行数据资源缓存,所述第二缓存模块采用所述第二资源缓存策略进行数据资源缓存;停止或恢复通过第三缓存模块进行数据资源缓存,所述第三缓存模块采用所述第三资源缓存策略进行数据资源缓存。
- 如权利要求30所述的系统,其特征在于,所述缓存管理模块具体用于:若根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,确定缓存管理等级为最高等级,则:执行所述第一释放操作,并在执行所述第一释放操作后,根据所述网络状态上报模块上报的网络状态和/或所述设备状态上报模块上报的设备运行状态,判断缓存管理等级是否为最高等级;若仍为最高等级,则执行所述第二释放操作和/或所述第三释放操作。
- 如权利要求30所述的系统,其特征在于,满足以下条件中的一种或多种组合时,缓存管理等级为最高等级:设备内存可用容量低于设定门限;设备CPU占用率高于设定门限;上下行传输速率高于设定门限;丢包率低于设定门限。
- 如权利要求26所述的系统,其特征在于,所述网络状态上报模块上报的网络状态包括以下信息中的一种或任意组合:网络连接类型、上下行传输速率,丢包率。
- 如权利要求26所述的系统,其特征在于,所述设备状态上报模块上报的设备运行状态包括以下信息中的一种或任意组合:设备内存可用容量,CPU占用率。
- 一种终端,其特征在于,包括:存储器,用于存储计算机程序指令;处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:接收数据资源;根据所述数据资源所属的应用获取所述应用对应的资源缓存策略;其中,预先为应用配置资源缓存策略,为一个应用配置的资源缓存策略为N种资源缓存策略中的一种,N为大于1的整数;根据获取到的资源缓存策略对接收到的数据资源进行缓存。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/041,079 US10862992B2 (en) | 2016-01-22 | 2018-07-20 | Resource cache management method and system and apparatus |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610045314.2 | 2016-01-22 | ||
| CN201610045314.2A CN106997351B (zh) | 2016-01-22 | 2016-01-22 | 一种资源缓存管理方法及系统和装置 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/041,079 Continuation-In-Part US10862992B2 (en) | 2016-01-22 | 2018-07-20 | Resource cache management method and system and apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017124972A1 true WO2017124972A1 (zh) | 2017-07-27 |
Family
ID=59361322
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/071126 Ceased WO2017124972A1 (zh) | 2016-01-22 | 2017-01-13 | 一种资源缓存管理方法及系统和装置 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US10862992B2 (zh) |
| CN (1) | CN106997351B (zh) |
| WO (1) | WO2017124972A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108829824A (zh) * | 2018-06-13 | 2018-11-16 | 广东小天才科技有限公司 | 互联网运营活动中的资源处理方法及装置 |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110134650B (zh) * | 2019-04-28 | 2022-03-25 | 深圳市腾讯网域计算机网络有限公司 | 一种文件加载方法、装置、设备及存储介质 |
| US11099899B2 (en) * | 2019-11-14 | 2021-08-24 | Sas Institute Inc. | Atomic pool manager for a data pool using a memory slot for storing a data object |
| CN110932935A (zh) * | 2019-11-26 | 2020-03-27 | 深圳前海微众银行股份有限公司 | 资源控制方法、装置、设备及计算机存储介质 |
| CN111581556B (zh) * | 2020-04-27 | 2023-04-25 | 抖音视界有限公司 | 页面数据处理方法、装置、电子设备和可读介质 |
| EP4229927A1 (en) * | 2020-10-14 | 2023-08-23 | InterDigital Patent Holdings, Inc. | Methods and apparatus for power-efficient positioning in wireless communication systems |
| CN114764416A (zh) * | 2021-01-15 | 2022-07-19 | 华为云计算技术有限公司 | 数据缓存方法、装置、设备及计算机可读存储介质 |
| CN112817769B (zh) * | 2021-03-05 | 2024-05-28 | 网易(杭州)网络有限公司 | 游戏资源动态缓存方法、装置、存储介质与电子设备 |
| CN113190350B (zh) * | 2021-04-30 | 2022-06-14 | 华南理工大学 | 一种面向在离线容器混合部署的llc分配方法 |
| CN115729438A (zh) * | 2021-08-31 | 2023-03-03 | 超聚变数字技术有限公司 | 数据访问方法、装置及存储介质 |
| US12530297B2 (en) | 2023-03-24 | 2026-01-20 | Samsung Electronics Co., Ltd. | Electronic device allocating data in plurality of caches using cache allocation range information |
| US12602325B2 (en) * | 2023-06-15 | 2026-04-14 | Sap Se | Caching strategy determination and injection |
| CN119946704B (zh) * | 2025-04-09 | 2025-08-15 | 联城科技(河北)股份有限公司 | 数据传输方法及装置、设备、存储介质 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030084244A1 (en) * | 2001-10-30 | 2003-05-01 | Dominic Paulraj | Reconfigurable cache |
| CN1585941A (zh) * | 1999-08-16 | 2005-02-23 | 皇家菲利浦电子有限公司 | 语义高速缓存 |
| CN103095606A (zh) * | 2011-10-28 | 2013-05-08 | 中兴通讯股份有限公司 | 一种基于策略控制的缓存方法和系统 |
| CN103763371A (zh) * | 2014-01-21 | 2014-04-30 | 深圳市脉山龙信息技术股份有限公司 | 一种动态控制移动端应用缓存的方法 |
| CN103905332A (zh) * | 2012-12-31 | 2014-07-02 | 华为技术有限公司 | 一种确定缓存策略的方法及设备 |
| CN104572502A (zh) * | 2015-01-12 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | 一种存储系统缓存策略自适应方法 |
| CN104598394A (zh) * | 2013-10-31 | 2015-05-06 | 中国石油天然气集团公司 | 一种可动态分配的数据缓存方法及系统 |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6457047B1 (en) * | 2000-05-08 | 2002-09-24 | Verity, Inc. | Application caching system and method |
| US7093073B2 (en) * | 2003-06-26 | 2006-08-15 | International Business Machines Corporation | Systems and methods for adjusting caching policies for web service requests |
| US7836261B2 (en) | 2004-01-12 | 2010-11-16 | International Business Machines Corporation | Managing caching of data on a client |
| US8805949B2 (en) * | 2008-01-16 | 2014-08-12 | Netapp, Inc. | System and method for populating a cache using behavioral adaptive policies |
| US8606996B2 (en) | 2008-03-31 | 2013-12-10 | Amazon Technologies, Inc. | Cache optimization |
| EP2388704A1 (en) | 2010-05-17 | 2011-11-23 | Thomson Licensing | Method of optimization of cache memory management and corresponding apparatus |
| US20140149392A1 (en) | 2012-11-28 | 2014-05-29 | Microsoft Corporation | Unified search result service and cache update |
| CN106688217B (zh) * | 2014-03-08 | 2021-11-12 | 狄亚曼提公司 | 用于融合联网和存储的方法和系统 |
| CN104320448B (zh) * | 2014-10-17 | 2019-11-01 | 张维加 | 一种基于大数据的计算设备的缓存与预取加速方法和装置 |
| CN104360955B (zh) * | 2014-12-08 | 2018-08-14 | 山东工商学院 | 一种应用独立缓存系统及方法 |
| US9648127B2 (en) * | 2014-12-15 | 2017-05-09 | Level 3 Communications, Llc | Caching in a content delivery framework |
| US9535843B2 (en) * | 2015-02-17 | 2017-01-03 | Linkedin Corporation | Managed memory cache with application-layer prefetching |
| US10075551B1 (en) | 2016-06-06 | 2018-09-11 | Amazon Technologies, Inc. | Request management for hierarchical cache |
-
2016
- 2016-01-22 CN CN201610045314.2A patent/CN106997351B/zh active Active
-
2017
- 2017-01-13 WO PCT/CN2017/071126 patent/WO2017124972A1/zh not_active Ceased
-
2018
- 2018-07-20 US US16/041,079 patent/US10862992B2/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1585941A (zh) * | 1999-08-16 | 2005-02-23 | 皇家菲利浦电子有限公司 | 语义高速缓存 |
| US20030084244A1 (en) * | 2001-10-30 | 2003-05-01 | Dominic Paulraj | Reconfigurable cache |
| CN103095606A (zh) * | 2011-10-28 | 2013-05-08 | 中兴通讯股份有限公司 | 一种基于策略控制的缓存方法和系统 |
| CN103905332A (zh) * | 2012-12-31 | 2014-07-02 | 华为技术有限公司 | 一种确定缓存策略的方法及设备 |
| CN104598394A (zh) * | 2013-10-31 | 2015-05-06 | 中国石油天然气集团公司 | 一种可动态分配的数据缓存方法及系统 |
| CN103763371A (zh) * | 2014-01-21 | 2014-04-30 | 深圳市脉山龙信息技术股份有限公司 | 一种动态控制移动端应用缓存的方法 |
| CN104572502A (zh) * | 2015-01-12 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | 一种存储系统缓存策略自适应方法 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108829824A (zh) * | 2018-06-13 | 2018-11-16 | 广东小天才科技有限公司 | 互联网运营活动中的资源处理方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20190124174A1 (en) | 2019-04-25 |
| US10862992B2 (en) | 2020-12-08 |
| CN106997351A (zh) | 2017-08-01 |
| CN106997351B (zh) | 2021-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017124972A1 (zh) | 一种资源缓存管理方法及系统和装置 | |
| CN107577533B (zh) | 资源配置方法及相关产品 | |
| KR101326390B1 (ko) | 유저 행동 이력에 기초한 송신 요청 지연을 이용한 모바일 디바이스의 전력 최적화 | |
| CN105512053B (zh) | 移动透明计算系统服务器端多用户访问的镜像缓存方法 | |
| CN107547746B (zh) | 资源配置方法及相关产品 | |
| US9619388B2 (en) | Method for managing cache data of a mobile terminal, mobile terminal, and server | |
| CN110545246A (zh) | 一种基于令牌桶的限流方法和装置 | |
| CN107547629B (zh) | 客户端静态资源下载的方法、装置、电子设备和可读介质 | |
| CN107589998A (zh) | 资源配置方法及相关产品 | |
| CN107613107A (zh) | 资源配置方法及相关产品 | |
| WO2015100994A1 (zh) | 页面处理方法、装置及系统 | |
| CN107426432A (zh) | 资源配置方法及相关产品 | |
| US9207983B2 (en) | Methods for adapting application services based on current server usage and devices thereof | |
| WO2023020085A1 (zh) | 基于多级缓存的数据处理方法及系统 | |
| CN112868265B (zh) | 网络资源的管理方法、管理装置、电子设备及存储介质 | |
| CN115470427A (zh) | 页面加载方法、装置、设备以及存储介质 | |
| CN108885587B (zh) | 具有系统高速缓存和本地资源管理的功率降低存储器子系统 | |
| WO2022105504A1 (zh) | 函数服务的调度方法、系统、计算设备和存储介质 | |
| CN115174484B (zh) | 基于rdma的数据传输方法、装置、设备及存储介质 | |
| CN108351873B (zh) | 一种缓存管理方法和装置 | |
| CN114356866A (zh) | 分离阈值调整方法、存储介质及程序产品 | |
| CN115904754A (zh) | 一种RabbitMQ队列水平扩展方法及系统 | |
| HK1240365A (zh) | 一種資源緩存管理方法及系統和裝置 | |
| HK1240365A1 (zh) | 一种资源缓存管理方法及系统和装置 | |
| HK1240365B (zh) | 一种资源缓存管理方法及系统和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17741003 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17741003 Country of ref document: EP Kind code of ref document: A1 |