CN106790450B - Method for caching and processing, device and server - Google Patents

Method for caching and processing, device and server Download PDF

Info

Publication number
CN106790450B
CN106790450B CN201611115335.3A CN201611115335A CN106790450B CN 106790450 B CN106790450 B CN 106790450B CN 201611115335 A CN201611115335 A CN 201611115335A CN 106790450 B CN106790450 B CN 106790450B
Authority
CN
China
Prior art keywords
application
terminal
information
cache
memory
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.)
Active
Application number
CN201611115335.3A
Other languages
Chinese (zh)
Other versions
CN106790450A (en
Inventor
杨冬东
谢芮
刘山荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611115335.3A priority Critical patent/CN106790450B/en
Publication of CN106790450A publication Critical patent/CN106790450A/en
Application granted granted Critical
Publication of CN106790450B publication Critical patent/CN106790450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of method for caching and processing, device and servers, wherein this method comprises: receiving the cache information respectively applied that terminal uploads, wherein the cache information includes cache contents;Store the cache information of each application;Before determining each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that terminal loads cache contents corresponding with each application.So as to before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that terminal loads cache contents corresponding with each application, even if after exiting because of exception or exited because of not used for a long time to the application of terminal, the cache contents of application are just fallen clearly from terminal memory by terminal, terminal can be also available to respectively applying corresponding cache contents on cloud, the volume starting time of application can be reduced, improve the response speed of application, the starting and response that can accelerate application, improve user experience.

Description

Method for caching and processing, device and server
Technical field
This disclosure relates to field of terminal technology more particularly to method for caching and processing, device and server.
Background technique
With the application and development of terminal, terminal has become the important tool in people's life and work.Terminal provides The function of caching.
In the related technology, if the application in terminal started it is primary, the system of terminal will by using resource It is cached, and then the cache information of application is stored in inside terminal;As long as the application is not killed or exited, user is next When using the application again because the cache information of the application is stored in inside terminal, the application can quickly start with Response.
However in the related technology, if application is delayed using because exception is exited or exited because not used for a long time Depositing information will be fallen clearly from terminal memory by terminal, and when at this moment user is gone again using the application, the starting of application will Relatively slow, the response of application is also relatively slow, and then affects user experience.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method for caching and processing, device and server, uses In solution in the prior art if application is because exception is exited or exited because long-time is not used, the cache information of application is just It can be fallen clearly from terminal memory by terminal, when at this moment user is gone again using the application, the starting of application will be relatively slow, application Response it is also relatively slow, and then the problem of affect user experience.
According to the first aspect of the embodiments of the present disclosure, a kind of method for caching and processing is provided, comprising:
Receive the cache information respectively applied that terminal uploads, wherein the cache information includes cache contents;
Store the cache information of each application;
Before determining each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that eventually End loads cache contents corresponding with each application.
Further, the cache information further include: starting time;
After the cache information of each application of storage, further includes:
According to the cache information of each application, the frequency of use of each application is counted;
According to the frequency of use of each application, determine that frequency of use is greater than the application of predeterminated frequency;
It is described that cache contents corresponding with each application are sent to terminal before determining each application starting of terminal, with Make terminal loads cache contents corresponding with each application, comprising:
The memory size information for obtaining terminal determines that frequency of use is greater than in the application of predeterminated frequency and the memory size The corresponding application of information;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
Further, the cache information further include: starting time;
After the cache information of each application of storage, further includes:
The selection information of user is received, the selection information includes the name of the application of the load cache information of user's selection Claim;
It is described that cache contents corresponding with each application are sent to terminal before determining each application starting of terminal, with Make terminal loads cache contents corresponding with each application, comprising:
The memory size information of terminal is obtained, is determined corresponding with the memory size information in the application in selection information Using;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
It further, further include user identifier in the cache information;
It is described that cache contents corresponding with each application are sent to terminal before determining each application starting of terminal, with Make terminal loads cache contents corresponding with each application, comprising:
Determine terminal corresponding with user identifier;
Before determining each application starting of terminal corresponding with user identifier, and in terminal corresponding with user identifier Under the well-to-do state of network broadband resource, will and the corresponding cache information of each application be sent to terminal corresponding with user identifier, with Make and the corresponding terminal loads of user identifier cache information corresponding with each application.
Further, the cache information respectively applied for receiving terminal and uploading, comprising:
Terminal is received under the well-to-do state of network broadband resource, the cache information of upload respectively applied.
Further, the cache information of each application of storage, comprising:
Determine whether the memory buffers information with each application;
It is slow according to storage of the cache information of each application to each application if the memory buffers information with each application Information is deposited to be updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
The technical scheme provided by this disclosed embodiment can include the following benefits: by receiving each of terminal upload The cache information of application, wherein cache information includes cache contents;Store the cache information of each application;Determining each of terminal Before starting, cache contents corresponding with each application are sent to terminal, so that terminal loads are corresponding with each application slow Deposit content.So as to which before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that Terminal loads cache contents corresponding with each application, thus even if the application of terminal because it is abnormal exit or because for a long time not by Using and after exiting, the cache contents of application are just fallen clearly from terminal memory by terminal, and terminal also available can arrive cloud It is each on end to apply corresponding cache contents, it is possible to reduce the volume of application starts the time, improves the response speed of application, can accelerate The starting and response of application, improve user experience.
According to the second aspect of an embodiment of the present disclosure, a kind of buffer processing device is provided, comprising:
Receiving module is configured as receiving the cache information respectively applied that terminal uploads, wherein the cache information includes Cache contents;
Memory module is configured as storing the cache information of each application;
Loading module is configured as before determining each application starting of terminal, will cache contents corresponding with each application It is sent to terminal, so that terminal loads cache contents corresponding with each application.
Further, the cache information further include: starting time;
Described device, further includes:
Statistical module is configured as after the cache information that the memory module stores each application, according to each application Cache information counts the frequency of use of each application;According to the frequency of use of each application, determine that frequency of use is greater than predeterminated frequency Using;
The loading module, is configured specifically are as follows:
The memory size information for obtaining terminal determines that frequency of use is greater than in the application of predeterminated frequency and the memory size The corresponding application of information;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
Further, the cache information further include: starting time;
Described device, further includes:
Selecting module is configured as after the cache information that the memory module stores each application, receives the choosing of user Information is selected, the selection information includes the title of the application of the load cache information of user's selection;
The loading module, is configured specifically are as follows:
The memory size information of terminal is obtained, is determined corresponding with the memory size information in the application in selection information Using;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
It further, further include user identifier in the cache information;
The loading module, is configured specifically are as follows:
Determine terminal corresponding with user identifier;
Before determining each application starting of terminal corresponding with user identifier, and in terminal corresponding with user identifier Under the well-to-do state of network broadband resource, will and the corresponding cache information of each application be sent to terminal corresponding with user identifier, with Make and the corresponding terminal loads of user identifier cache information corresponding with each application.
Further, the receiving module, is configured specifically are as follows:
Terminal is received under the well-to-do state of network broadband resource, the cache information of upload respectively applied.
Further, the memory module, is configured specifically are as follows:
Determine whether the memory buffers information with each application;
It is slow according to storage of the cache information of each application to each application if the memory buffers information with each application Information is deposited to be updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
The technical scheme provided by this disclosed embodiment can include the following benefits: by receiving each of terminal upload The cache information of application, wherein cache information includes cache contents;Store the cache information of each application;Determining each of terminal Before starting, cache contents corresponding with each application are sent to terminal, so that terminal loads are corresponding with each application slow Deposit content.So as to which before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that Terminal loads cache contents corresponding with each application, thus even if the application of terminal because it is abnormal exit or because for a long time not by Using and after exiting, the cache contents of application are just fallen clearly from terminal memory by terminal, and terminal also available can arrive cloud It is each on end to apply corresponding cache contents, it is possible to reduce the volume of application starts the time, improves the response speed of application, can accelerate The starting and response of application, improve user experience.
According to the third aspect of an embodiment of the present disclosure, a kind of server is provided, comprising:
Processor, and the memory for storage processor executable instruction;
Wherein, the processor is configured to: receive terminal upload the cache information respectively applied, wherein the caching Information includes cache contents;Store the cache information of each application;It, will be with each application pair before determining each application starting of terminal The cache contents answered are sent to terminal, so that terminal loads cache contents corresponding with each application.
The technical scheme provided by this disclosed embodiment can include the following benefits: by receiving each of terminal upload The cache information of application, wherein cache information includes cache contents;Store the cache information of each application;Determining each of terminal Before starting, cache contents corresponding with each application are sent to terminal, so that terminal loads are corresponding with each application slow Deposit content.So as to which before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that Terminal loads cache contents corresponding with each application, thus even if the application of terminal because it is abnormal exit or because for a long time not by Using and after exiting, the cache contents of application are just fallen clearly from terminal memory by terminal, and terminal also available can arrive cloud It is each on end to apply corresponding cache contents, it is possible to reduce the volume of application starts the time, improves the response speed of application, can accelerate The starting and response of application, improve user experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method for caching and processing embodiment one shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of method for caching and processing embodiment two shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of method for caching and processing embodiment three shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of method for caching and processing example IV shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of buffer processing device embodiment five shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of buffer processing device embodiment six shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the entity of server shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of server apparatus 800 shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of method for caching and processing embodiment one shown according to an exemplary embodiment, such as Fig. 1 institute Show, method for caching and processing is in cloud server, this approach includes the following steps.
In step s 11, the cache information respectively applied that terminal uploads is received, wherein the cache information includes caching Content.
Wherein, the specific implementation of step S11 are as follows: terminal is received under the well-to-do state of network broadband resource, upload The cache information respectively applied.
In this step, in each application starting of terminal or after usage, each application can have cache information;Eventually There are the cache informations of each application on the memory at end;Terminal can upload the cache information of each application to cloud server, wherein The cache information includes cache contents.
Specifically, terminal can be when terminal be under the well-to-do state of network broadband resource, by the slow of each application It deposits information to upload in cloud server, and then cloud server can receive terminal and be under the well-to-do state of network broadband resource When the cache information respectively applied that uploads.
For example, it when terminal is in free wireless network and occupies broadband network without application, can determine Terminal is in the well-to-do state of network broadband resource, and the cache information of each application can be uploaded to cloud server by terminal at this time In;Alternatively, terminal is in free wireless network and when bandwidth value is greater than certain threshold value, terminal can will be each at this time The cache information of application uploads in cloud server.
In step s 12, the cache information of each application is stored.
Wherein, the specific implementation of step S12 are as follows:
Determine whether the memory buffers information with each application;
It is slow according to storage of the cache information of each application to each application if the memory buffers information with each application Information is deposited to be updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
In this step, the cache information respectively applied that cloud server uploads terminal stores.Specifically, cloud End server first determines whether the memory buffers information respectively applied for being stored with the terminal;If the storage with the terminal Cache information, then cloud server can carry out more the information of memory buffers of each application according to the cache information of each application Newly, and then cloud server will be updated in the cache information of the terminal beyond the clouds server;If having deposited with the terminal Cache information is stored up, then cloud server can directly store the cache information of the terminal respectively applied.
In step s 13, before determining each application starting of terminal, cache contents corresponding with each application are sent to Terminal, so that terminal loads cache contents corresponding with each application.
In this step, for cloud server before determining each application starting of terminal, cloud server will be with each application Corresponding cache contents are sent to terminal, so that terminal loads and each application pair after receiving cache contents corresponding with each application The cache contents answered.And then terminal can be according to the cache contents corresponding with each application of load, deactivation, each application of response.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;Before determining each application starting of terminal, cache contents corresponding with each application are sent To terminal, so that terminal loads cache contents corresponding with each application.It, will be with so as to before each application starting of terminal It respectively is sent to terminal using corresponding cache contents, so that terminal loads cache contents corresponding with each application, thus even if eventually The application at end because it is abnormal exit or exited because of not used for a long time after, the cache contents of application are just by terminal from end Fall clearly in end memory, terminal can be also available to respectively applying corresponding cache contents on cloud, it is possible to reduce the volume of application Start the time, improve the response speed of application, the starting and response of application can be accelerated, improve user experience.
On the basis of above-mentioned embodiment shown in FIG. 1, Fig. 2 is at a kind of caching shown according to an exemplary embodiment The flow chart for managing embodiment of the method two, as shown in Fig. 2, the cache information further include: starting time;
After step s 12, further includes:
In the step s 21, according to the cache information of each application, the frequency of use of each application is counted;According to making for each application With frequency, determine that frequency of use is greater than the application of predeterminated frequency.
In this step, after the cache information respectively applied that cloud server uploads terminal is stored, cloud clothes The starting time in the cache information respectively applied that business device is received according to different time, count the frequency of use of each application; Then cloud server determines that frequency of use is greater than the application of predeterminated frequency, and then determine according to the frequency of use of each application The application of high frequency of use out.
The specific implementation of step S13 are as follows:
The memory size information for obtaining terminal determines that frequency of use is greater than in the application of predeterminated frequency and the memory size The corresponding application of information;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
In this step, in the cache information for the application that cloud server can be greater than predeterminated frequency according to frequency of use The starting time, determine frequency of use be greater than predeterminated frequency application the starting time.Then, cloud server obtains current The memory size information of terminal determines that frequency of use is greater than application corresponding with memory size information in the application of predeterminated frequency. Thus starting time of the cloud server according to application corresponding with memory size information, corresponding with memory size information Before starting, when determining that present terminal is under the well-to-do state of network broadband resource, cloud server will with The corresponding cache contents of the corresponding application of memory size information are sent to present terminal, then present terminal can load and with The corresponding cache contents of the corresponding application of memory size information.And then present terminal can be believed according to the sum of load with memory size Cease the corresponding cache contents of corresponding application, deactivation, each application of response.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;According to the cache information of each application, the frequency of use of each application is counted;According to making for each application With frequency, determine that frequency of use is greater than the application of predeterminated frequency;The memory size information for obtaining terminal, determines that frequency of use is greater than Application corresponding with memory size information in the application of predeterminated frequency;When according to the starting of application corresponding with memory size information Between, before application corresponding with memory size information starting, and under the well-to-do state of network broadband resource of terminal, will with The corresponding cache contents of the corresponding application of memory size information are sent to terminal so that terminal loads and with memory size information pair Answer using corresponding cache contents.It, will be in caching corresponding with each application so as to before each application starting of terminal Appearance is sent to terminal, so that terminal loads cache contents corresponding with each application, so that even if the application of terminal is because abnormal move back After exiting out or because of not used for a long time, the cache contents of application are just fallen clearly from terminal memory by terminal, terminal It can be also available to respectively applying corresponding cache contents on cloud, it is possible to reduce the volume of application starts the time, improves application Response speed, can accelerate application starting and response, improve user experience.
On the basis of above-mentioned embodiment shown in FIG. 1, Fig. 3 is at a kind of caching shown according to an exemplary embodiment The flow chart for managing embodiment of the method three, as shown in figure 3, the cache information further include: starting time;
After step s 12, further includes:
In step S31, the selection information of user is received, the selection information includes the load cache information of user's selection Application title.
In this step, after the cache information respectively applied that cloud server uploads terminal is stored, Yong Huke To select to need to load the title of the application of cache information in the terminal, the load that then terminal generation carries user's selection is delayed The selection information of the title of stored application, terminal will select information to be sent to cloud server;To which cloud server connects Receive the selection information that user is sent by terminal.
The specific implementation of step S13 are as follows:
The memory size information of terminal is obtained, is determined corresponding with the memory size information in the application in selection information Using;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
In this step, cloud server can according to selection information in application cache information in starting when Between, determine the starting time of the application in selection information.Then, cloud server obtains the memory size letter of present terminal Breath determines application corresponding with memory size information in the application in selection information.To which cloud server is according to big with memory The starting time of the corresponding application of small information determines present terminal before application corresponding with memory size information starting When under the well-to-do state of network broadband resource, cloud server corresponding with memory size information will be applied corresponding Cache contents are sent to present terminal, and then present terminal can load and application corresponding with memory size information is corresponding Cache contents.And then present terminal can according to the corresponding cache contents of the sum of load application corresponding with memory size information, Deactivation, each application of response.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;The selection information of user is received, selecting information includes the load cache information of user's selection The title of application;The memory size information of terminal is obtained, is determined corresponding with memory size information in the application in selection information Using;According to the starting time of application corresponding with memory size information, start it in application corresponding with memory size information Before, and under the well-to-do state of network broadband resource of terminal, it corresponding with memory size information will apply in corresponding caching Appearance is sent to terminal, so that terminal loads and the corresponding cache contents of application corresponding with memory size information.So as to Before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that terminal loads and each application Corresponding cache contents, thus even if the application of terminal because it is abnormal exit or exited because of not used for a long time after, The cache contents of application are just fallen clearly from terminal memory by terminal, terminal can also it is available on cloud respectively using corresponding Cache contents, it is possible to reduce the volume of application starts the time, improves the response speed of application, can accelerate starting and the sound of application It answers, improves user experience.
On the basis of above-mentioned embodiment shown in FIG. 1, Fig. 4 is at a kind of caching shown according to an exemplary embodiment The flow chart for managing embodiment of the method four, as shown in figure 4, further including user identifier in the cache information;
The specific implementation of step S13 are as follows:
Determine terminal corresponding with user identifier;
Before determining each application starting of terminal corresponding with user identifier, and in terminal corresponding with user identifier Under the well-to-do state of network broadband resource, will and the corresponding cache information of each application be sent to terminal corresponding with user identifier, with Make and the corresponding terminal loads of user identifier cache information corresponding with each application.
It in this step, further include user identifier in cache information.User identifier can be corresponding from different terminals. Cloud server determines terminal corresponding with user identifier first.Cloud server is determining terminal corresponding with user identifier Before each application starting, cloud server will and the corresponding cache contents of each application be sent to terminal corresponding with user identifier, So that and the corresponding terminal reception of user identifier and each load caching corresponding with each application after applying corresponding cache contents Content.And then and the corresponding terminal of user identifier can be according to the cache contents corresponding with each application of load, deactivation, response Each application.
So as to which the corresponding cache contents load of each application is given the corresponding terminal of user identifier, and user identifier is only Corresponding with user, user identifier can be corresponding from different terminals, and then the corresponding cache contents of each application can be added Carry the cache contents for allowing the same user to use each application in different terminals to different terminals.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;Determine terminal corresponding with user identifier;Determining each of terminal corresponding with user identifier It, will be corresponding with each application before starting, and under the well-to-do state of network broadband resource of terminal corresponding with user identifier Cache information be sent to terminal corresponding with user identifier so that terminal loads corresponding with user identifier are corresponding with each application Cache information.So as to which before each application starting of terminal, cache contents corresponding with each application are sent to terminal, So that terminal loads cache contents corresponding with each application, so that even if the application of terminal is because abnormal exit or because of for a long time After not used and being exited, the cache contents of application are just fallen clearly from terminal memory by terminal, and terminal can be also available Corresponding cache contents are respectively applied on to cloud, it is possible to reduce the volume of application starts the time, improves the response speed of application, can be with The starting and response for accelerating application, improve user experience.And it is possible to load the corresponding cache contents of each application to not Same terminal allows the same user to use the cache contents of each application in different terminals.
Fig. 5 is a kind of block diagram of buffer processing device embodiment five shown according to an exemplary embodiment.Reference Fig. 5, The device includes:
Receiving module 41 is configured as receiving the cache information respectively applied that terminal uploads, wherein the cache information packet Include cache contents;
Memory module 42 is configured as storing the cache information of each application;
Loading module 43 is configured as before determining each application starting of terminal, will be in caching corresponding with each application Appearance is sent to terminal, so that terminal loads cache contents corresponding with each application.
Wherein, the receiving module 41, is configured specifically are as follows:
Terminal is received under the well-to-do state of network broadband resource, the cache information of upload respectively applied.
The memory module 43, is configured specifically are as follows:
Determine whether the memory buffers information with each application;
It is slow according to storage of the cache information of each application to each application if the memory buffers information with each application Information is deposited to be updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment one in be described in detail, no detailed explanation will be given here.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;Before determining each application starting of terminal, cache contents corresponding with each application are sent To terminal, so that terminal loads cache contents corresponding with each application.It, will be with so as to before each application starting of terminal It respectively is sent to terminal using corresponding cache contents, so that terminal loads cache contents corresponding with each application, thus even if eventually The application at end because it is abnormal exit or exited because of not used for a long time after, the cache contents of application are just by terminal from end Fall clearly in end memory, terminal can be also available to respectively applying corresponding cache contents on cloud, it is possible to reduce the volume of application Start the time, improve the response speed of application, the starting and response of application can be accelerated, improve user experience.
On the basis of above-mentioned embodiment shown in fig. 5, Fig. 6 is at a kind of caching shown according to an exemplary embodiment Manage the block diagram of Installation practice six.Referring to Fig. 6, the cache information further include: the starting time;
Described device, further includes:
Statistical module 44 is configured as after the memory module 42 stores the cache information of each application, according to respectively answering Cache information counts the frequency of use of each application;According to the frequency of use of each application, determine that frequency of use is greater than default frequency The application of rate;
The loading module 43, is configured specifically are as follows:
The memory size information for obtaining terminal determines that frequency of use is greater than in the application of predeterminated frequency and the memory size The corresponding application of information;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
Alternatively, the cache information further include: the starting time;
Described device, further includes:
Selecting module 45 is configured as after the memory module 42 stores the cache information of each application, receives user Selection information, it is described selection information include user selection load cache information application title;
The loading module 43, is configured specifically are as follows:
The memory size information of terminal is obtained, is determined corresponding with the memory size information in the application in selection information Using;
According to the starting time of application corresponding with the memory size information, corresponding with the memory size information Before starting, and under the well-to-do state of network broadband resource of terminal, corresponding with the memory size information it will answer It is sent to terminal with corresponding cache contents, so that terminal loads and application corresponding with the memory size information are corresponding slow Deposit content.
Alternatively, further including user identifier in the cache information;
The loading module 43, is configured specifically are as follows:
Determine terminal corresponding with user identifier;
Before determining each application starting of terminal corresponding with user identifier, and in terminal corresponding with user identifier Under the well-to-do state of network broadband resource, will and the corresponding cache information of each application be sent to terminal corresponding with user identifier, with Make and the corresponding terminal loads of user identifier cache information corresponding with each application.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment two, be described in detail in embodiment three and example IV, no detailed explanation will be given here.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;Before determining each application starting of terminal, cache contents corresponding with each application are sent To terminal, so that terminal loads cache contents corresponding with each application.It, will be with so as to before each application starting of terminal It respectively is sent to terminal using corresponding cache contents, so that terminal loads cache contents corresponding with each application, thus even if eventually The application at end because it is abnormal exit or exited because of not used for a long time after, the cache contents of application are just by terminal from end Fall clearly in end memory, terminal can be also available to respectively applying corresponding cache contents on cloud, it is possible to reduce the volume of application Start the time, improve the response speed of application, the starting and response of application can be accelerated, improve user experience.Also, it can Use the same user in different terminals each load using corresponding cache contents The cache contents respectively applied.
Fig. 7 is a kind of block diagram of the entity of server shown according to an exemplary embodiment.Referring to Fig. 7, the server It can implement are as follows: processor 51, and it is configured as the memory 52 of storage processor executable instruction;
Wherein, the processor 51 is configured as: receiving the cache information respectively applied that terminal uploads, wherein described slow Depositing information includes cache contents;Store the cache information of each application;It, will be with each application before determining each application starting of terminal Corresponding cache contents are sent to terminal, so that terminal loads cache contents corresponding with each application.
In the above-described embodiments, it should be appreciated that the processor can be central processing unit (English: Central Processing Unit, referred to as: CPU), it can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional place Device etc. is managed, and memory above-mentioned can be read-only memory (English: read-only memory, abbreviation: ROM), deposit at random Access to memory (English: random access memory, abbreviation: RAM), flash memory, hard disk or solid state hard disk.SIM Card is also referred to as subscriber identification card, smart card, and digital mobile telephone must load onto this card and can use.I.e. in computer chip On store the information of digital mobile phone client, the contents such as telephone directory of the key of encryption and user.In conjunction with of the invention real The step of applying method disclosed in example can be embodied directly in hardware processor and execute completion, or in processor hardware and Software module combination executes completion.
About the server in above-described embodiment, wherein modules execute the concrete mode of operation in the related party It is described in detail in method and the embodiment of device, no detailed explanation will be given here.
The cache information respectively applied that the present embodiment is uploaded by receiving terminal, wherein cache information includes cache contents; Store the cache information of each application;Before determining each application starting of terminal, cache contents corresponding with each application are sent To terminal, so that terminal loads cache contents corresponding with each application.It, will be with so as to before each application starting of terminal It respectively is sent to terminal using corresponding cache contents, so that terminal loads cache contents corresponding with each application, thus even if eventually The application at end because it is abnormal exit or exited because of not used for a long time after, the cache contents of application are just by terminal from end Fall clearly in end memory, terminal can be also available to respectively applying corresponding cache contents on cloud, it is possible to reduce the volume of application Start the time, improve the response speed of application, the starting and response of application can be accelerated, improve user experience.
Fig. 8 is a kind of block diagram of server apparatus 800 shown according to an exemplary embodiment.For example, server apparatus 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, server apparatus 800 may include following one or more components: processing component 802, memory 804, power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814 and communication component 816.
The integrated operation of the usual control server equipment 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more moulds Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in server apparatus 800.These numbers According to example include any application or method for being operated on server apparatus 800 instruction, contact data, electricity Talk about book data, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or Person's their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic storage Device, flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of server apparatus 800.Power supply module 806 may include power supply Management system, one or more power supplys and other with for server apparatus 800 generate, manage, and distribute associated group of electric power Part.
Multimedia component 808 includes the screen of one output interface of offer between the server apparatus 800 and user Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments In, multimedia component 808 includes a front camera and/or rear camera.When server apparatus 800 is in operation mould Formula, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external multi-medium data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom energy Power.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when server apparatus 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via Communication component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the shape of various aspects for server apparatus 800 State assessment.For example, sensor module 814 can detecte the state that opens/closes of server apparatus 800, component it is relatively fixed Position, such as the component are the display and keypad of server apparatus 800, and sensor module 814 can be with detection service device The position change of 800 1 components of equipment 800 or server apparatus, the presence or do not deposit that user contacts with server apparatus 800 In the temperature change in 800 orientation of server apparatus or acceleration/deceleration and server apparatus 800.Sensor module 814 can wrap Proximity sensor is included, is configured to detect the presence of nearby objects without any physical contact.Sensor module 814 It can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, The sensor module 814 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature Sensor.
Communication component 816 is configured to facilitate the logical of wired or wireless way between server apparatus 800 and other equipment Letter.Server apparatus 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In In one exemplary embodiment, communication component 816 receives the broadcast singal from external broadcasting management system via broadcast channel Or broadcast related information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, with Promote short range communication.For example, can be based on radio frequency identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology surpasses Broadband (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, server apparatus 800 can by one or more application specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array It arranges (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of server apparatus 800 to complete the above method. For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, Floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of method for caching and processing, which comprises
Receive the cache information respectively applied that terminal uploads, wherein the cache information includes cache contents;
Store the cache information of each application;
Before determining each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that eventually End loads cache contents corresponding with each application.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (7)

1. a kind of method for caching and processing characterized by comprising
Receive the cache information respectively applied that terminal uploads, wherein the cache information includes cache contents;
Store the cache information of each application;
Before determining each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that terminal adds Carry cache contents corresponding with each application;
Wherein, the cache information further include: starting time;
After the cache information of each application of storage, further includes: according to the cache information of each application, count making for each application Use frequency;According to the frequency of use of each application, determine that frequency of use is greater than the application of predeterminated frequency;
It is described that cache contents corresponding with each application are sent to terminal before determining each application starting of terminal, so that eventually End loads cache contents corresponding with each application, comprising: it is default to determine that frequency of use is greater than for the memory size information for obtaining terminal Application corresponding with the memory size information in the application of frequency;It is opened according to the corresponding application of memory size information The dynamic time, before application corresponding with memory size information starting, and in the well-to-do state of network broadband resource of terminal Under, the corresponding cache contents of application corresponding with the memory size information are sent to terminal so that terminal loads and with The memory size information is corresponding to apply corresponding cache contents.
2. the method according to claim 1, wherein it is described receive terminal upload the cache information respectively applied, Include:
Terminal is received under the well-to-do state of network broadband resource, the cache information of upload respectively applied.
3. the method according to claim 1, wherein the cache information of each application of storage, comprising:
Determine whether the memory buffers information with each application;
If the memory buffers information with each application, believed according to memory buffers of the cache information of each application to each application Breath is updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
4. a kind of buffer processing device characterized by comprising
Receiving module is configured as receiving the cache information respectively applied that terminal uploads, wherein the cache information includes caching Content;
Memory module is configured as storing the cache information of each application;
Loading module is configured as before determining each application starting of terminal, cache contents corresponding with each application is sent To terminal, so that terminal loads cache contents corresponding with each application;
Wherein, the cache information further include: starting time;
Described device, further includes:
Statistical module is configured as after the cache information that the memory module stores each application, according to the caching of each application Information counts the frequency of use of each application;According to the frequency of use of each application, determine that frequency of use is greater than answering for predeterminated frequency With;
The loading module, is configured specifically are as follows:
The memory size information for obtaining terminal determines that frequency of use is greater than in the application of predeterminated frequency and the memory size information Corresponding application;According to the starting time of application corresponding with the memory size information, with the memory size information pair It, will be corresponding with the memory size information before the application starting answered, and under the well-to-do state of network broadband resource of terminal Be sent to terminal using corresponding cache contents so that terminal loads and application corresponding with the memory size information are corresponding Cache contents.
5. device according to claim 4, which is characterized in that the receiving module is configured specifically are as follows:
Terminal is received under the well-to-do state of network broadband resource, the cache information of upload respectively applied.
6. device according to claim 4, which is characterized in that the memory module is configured specifically are as follows:
Determine whether the memory buffers information with each application;
If the memory buffers information with each application, believed according to memory buffers of the cache information of each application to each application Breath is updated;
If not having the memory buffers information of each application, the cache information of each application is stored.
7. a kind of server characterized by comprising
Processor, and the memory for storage processor executable instruction;
Wherein, the processor is configured to: receive terminal upload the cache information respectively applied, wherein the cache information Including cache contents;Store the cache information of each application;It, will be corresponding with each application before determining each application starting of terminal Cache contents are sent to terminal, so that terminal loads cache contents corresponding with each application;Wherein, the cache information also wraps It includes: the starting time;After the cache information of each application of storage, further includes: according to the cache information of each application, statistics is each The frequency of use of application;According to the frequency of use of each application, determine that frequency of use is greater than the application of predeterminated frequency;It is described in determination Before each application starting of terminal, cache contents corresponding with each application are sent to terminal, so that terminal loads and each application Corresponding cache contents, comprising: the memory size information for obtaining terminal, determine frequency of use be greater than predeterminated frequency application in The corresponding application of the memory size information;According to the starting time of application corresponding with the memory size information, with institute Before stating the corresponding application starting of memory size information, and under the well-to-do state of network broadband resource of terminal, will with it is described The corresponding cache contents of the corresponding application of memory size information are sent to terminal, so as to terminal loads and believe with the memory size Cease the corresponding cache contents of corresponding application.
CN201611115335.3A 2016-12-07 2016-12-07 Method for caching and processing, device and server Active CN106790450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611115335.3A CN106790450B (en) 2016-12-07 2016-12-07 Method for caching and processing, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611115335.3A CN106790450B (en) 2016-12-07 2016-12-07 Method for caching and processing, device and server

Publications (2)

Publication Number Publication Date
CN106790450A CN106790450A (en) 2017-05-31
CN106790450B true CN106790450B (en) 2019-11-29

Family

ID=58878647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611115335.3A Active CN106790450B (en) 2016-12-07 2016-12-07 Method for caching and processing, device and server

Country Status (1)

Country Link
CN (1) CN106790450B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108627B (en) * 2017-11-30 2020-07-28 中国联合网络通信集团有限公司 Message processing method and device
CN115033306B (en) * 2022-06-29 2024-05-24 维沃移动通信有限公司 Application exit method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468422A (en) * 2015-12-31 2016-04-06 深圳Tcl数字技术有限公司 Method and system for optimizing operation system
CN106066805A (en) * 2016-05-31 2016-11-02 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal that a kind of end application starts

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156236A (en) * 2014-07-23 2014-11-19 小米科技有限责任公司 Storage space saving method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468422A (en) * 2015-12-31 2016-04-06 深圳Tcl数字技术有限公司 Method and system for optimizing operation system
CN106066805A (en) * 2016-05-31 2016-11-02 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal that a kind of end application starts

Also Published As

Publication number Publication date
CN106790450A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107943409B (en) Touch screen control method and device
EP3113466A1 (en) Method and device for warning
CN106714213B (en) Buffer status report BSR reports triggering method, device and user terminal
CN105955765A (en) Method and device for application preloading
CN107040591B (en) Method and device for controlling client
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
EP3179397A1 (en) Methods and devices for managing automatic parallel login and logout in several applications
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
EP2938054B1 (en) Method, device and system for handling busy line
CN109474538A (en) A kind of data transmission method, device, terminal device and storage medium
CN106231640B (en) Wireless access point switching method and device
CN109698794A (en) A kind of jamming control method, device, electronic equipment and storage medium
CN107948093A (en) Adjust the method and device that network speed is applied in terminal device
CN105933465B (en) Access the method and device of wireless network
RU2615683C2 (en) Method and device for communication identification performance
CN106231072B (en) Control method, device and the terminal device of prompting message
CN106790450B (en) Method for caching and processing, device and server
CN108989191A (en) Recall method and its control method, the device and mobile terminal of picture file
CN105227426B (en) Application interface switching method and device and terminal equipment
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN105389152B (en) Project the method, apparatus and terminal device of picture
CN106535147B (en) Communication signal processing method and device
CN110933773B (en) Link monitoring method and device
CN105391620B (en) Information cuing method and device
CN110908814A (en) Message processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant