CN106021129A - Terminal and terminal cache clearing method - Google Patents

Terminal and terminal cache clearing method Download PDF

Info

Publication number
CN106021129A
CN106021129A CN201610289358.XA CN201610289358A CN106021129A CN 106021129 A CN106021129 A CN 106021129A CN 201610289358 A CN201610289358 A CN 201610289358A CN 106021129 A CN106021129 A CN 106021129A
Authority
CN
China
Prior art keywords
cache
user
cache file
file
terminal
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.)
Granted
Application number
CN201610289358.XA
Other languages
Chinese (zh)
Other versions
CN106021129B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610289358.XA priority Critical patent/CN106021129B/en
Publication of CN106021129A publication Critical patent/CN106021129A/en
Application granted granted Critical
Publication of CN106021129B publication Critical patent/CN106021129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0891Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using clearing, invalidating or resetting means

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a terminal and a terminal cache clearing method. The terminal cache clearing method includes: acquiring the user participation degree corresponding to cache files with different granularity according to a preset user participation degree acquisition strategy; comparing the user participation degree of the cache files and a preset threshold; deleting the cache files if the user participation degree of the cache files is less than the preset threshold; and saving the cache files if the user participation degree of the cache files is greater than the preset threshold.

Description

Terminal and method for clearing cache by terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a terminal and a method for clearing cache by the terminal.
Background
Currently, in the process of using a terminal, Applications (APP) running on the terminal generate a large amount of cache files, and thus occupy the storage space of the terminal. Most of the cache files are picture caches, video caches and chat record caches of instant messaging software generated during application running. When the caches occupy a large amount of storage space of the terminal, the terminal is jammed, and therefore, the cache files need to be cleared in time.
The current scheme for cleaning the terminal cache includes two schemes: one scheme is that all caches generated during the running of the application are directly deleted, so that important cache files for users are lost; the other scheme is that a user manually selects the cache files to be deleted, but each application generates a large number of cache files, and the user needs to select the cache files one by one from the large number of cache files, so that the complexity of operation of the user is increased, and the experience of the user is affected.
Disclosure of Invention
The invention mainly aims to provide a terminal and a method for clearing cache by the terminal, aiming at efficiently and automatically deleting cache files which are not needed by a user, reserving cache files which are important for the user, reducing the operation of the user and improving the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for a terminal to clear a cache, where the method includes:
acquiring user participation degrees corresponding to cache files with different granularities according to a preset user participation degree acquisition strategy;
comparing the user participation degree of the cache file with a preset threshold value;
deleting the cache file when the user participation degree of the cache file is lower than the preset threshold value;
and when the user participation degree of the cache file is higher than the preset threshold value, saving the cache file.
In the foregoing scheme, the obtaining the user engagement degrees corresponding to the cache files with different granularities according to the preset user engagement degree obtaining policy includes:
and when the granularity of the cache file is any cache file, taking the ratio of the occurrence times of the user information in the cache file to the number of cache information pieces as the user participation degree corresponding to the cache file.
In the above scheme, when the cache file is a chat record of instant messaging software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: in the chat records, the ratio of the number of records in which the user information appears to the total number of chat records.
In the above scheme, when the cache file is a play cache of network video playing software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
In the foregoing scheme, the obtaining the user engagement degrees corresponding to the cache files with different granularities according to the preset user engagement degree obtaining policy includes:
and when the granularity of the cache file is the cache folder of any application program, taking the use frequency of the application program as the user participation degree corresponding to the cache folder of the application program.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes: the device comprises an acquisition unit, a comparison unit, a deletion unit and a storage unit; wherein,
the acquiring unit is used for acquiring user participation degrees corresponding to cache files with different granularities according to a preset user participation degree acquiring strategy;
the comparison unit is used for comparing the user participation degree of the cache file with a preset threshold value; when the user participation degree of the cache file is lower than the preset threshold value, the deleting unit is triggered; when the user participation degree of the cache file is higher than the preset threshold value, the storage unit is triggered;
the deleting unit is used for deleting the cache file;
and the storage unit is used for storing the cache file.
In the foregoing scheme, the obtaining unit is configured to, when the granularity of the cache file is any cache file, use a ratio of the number of occurrences of the user information in the cache file to the number of pieces of cache information as the user participation degree corresponding to the cache file.
In the above scheme, when the cache file is a chat record of instant messaging software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: in the chat records, the ratio of the number of the chat records with the user information to the total number of the chat records is shown.
In the above scheme, when the cache file is a play cache of network video playing software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
In the foregoing scheme, the obtaining unit is configured to, when the granularity of the cache file is a cache folder of any application program, use the frequency of use of the application program as a user engagement level corresponding to the cache folder of the application program.
According to the terminal and the method for clearing the cache by the terminal, whether the cache file is deleted or not is determined according to the correlation degree of the user when the cache is cleared, so that the cache file which is not needed by the user can be efficiently and automatically deleted, the cache file which is important for the user is reserved, the operation of the user is reduced, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for clearing a cache by a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a specific implementation of a method for clearing a cache by a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a chat log according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another chat log provided by the embodiment of the invention;
fig. 6 is a schematic diagram of another chat log provided in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to fig. 1. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a navigation device, etc., and a stationary terminal such as a digital TV, a desktop computer, etc. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented, and that more or fewer components may instead be implemented, the elements of the mobile terminal being described in detail below.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151 and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Example one
Referring to fig. 2, it is shown that an embodiment of the present invention provides a method for a terminal to clean a cache, where the method may include:
s201: acquiring user participation degrees corresponding to cache files with different granularities according to a preset user participation degree acquisition strategy;
s202: comparing the user participation degree of the cache file with a preset threshold value: when the user participation degree of the cache file is lower than a preset threshold value, turning to S203; when the user participation degree of the cache file is higher than a preset threshold value, turning to S204;
s203: deleting the cache file;
s204: and saving the cache file.
For the technical solution shown in fig. 2, it should be noted that, in the running process of the application program of the terminal, a cache file is generated, generally, many cache files are generated by the application programs such as the instant messaging software and the network video playing software, and the size of the cache file is also large, so that, in this embodiment, the instant messaging software and the network video playing software are taken as examples for description, it can be understood that a person skilled in the art may apply the technical solution of this embodiment to a scenario of performing cache cleaning on other types of application programs without creative labor, and this embodiment is not described in detail.
In this embodiment, the user engagement of the cache file may be used to characterize the degree of correlation between the cache file and the user; specifically, the occurrence of the user-related information in the cache file can be used for representing, the more frequently the user-related information occurs, the more relevant the cache file is to the user, and further, the more important the cache file is to the user, so that the cache file needs to be saved when the cache is cleared.
In addition, the cache file may include a single cache file and a cache folder holding a plurality of cache files according to file granularity.
Optionally, when performing cache cleaning on a single cache file, step S201 may include:
and when the granularity of the cache file is any cache file, taking the ratio of the occurrence times of the user information in the cache file to the number of cache information pieces as the user participation degree corresponding to the cache file.
In a preferred implementation process, taking instant messaging software as an example, the ratio of the number of occurrences of the user information to the number of pieces of the cached information includes: in the chat records, the ratio of the number of the chat records with the user information to the total number of the chat records is shown.
Specifically, the user information may include an identifier of the user, and a keyword string corresponding to the user identity, such as a mobile phone number, an email address, and the like. Therefore, the chat record in which the user information appears may be a chat record including the user identifier and the keyword string corresponding to the user identity, or may also be a chat record sent by the user, and so on, which is not described in this embodiment.
In another preferred specific implementation process, taking network video playing software as an example, the ratio of the number of occurrences of the user information to the number of pieces of the cache information includes: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
Specifically, in network video playing software, a cache file is usually a video stream that is cached when a video is played, and therefore, the corresponding cache file is a play record of a user when each video is played; when the number of playing times of the video corresponding to a certain cache file is large, it indicates that the video is important for the user, and therefore, the cache file of the video should be saved.
Optionally, when performing cache cleaning on a cache folder storing a plurality of cache files, step S201 may include:
and when the granularity of the cache file is the cache folder of any application program, taking the use frequency of the application program as the user participation degree corresponding to the cache folder of the application program.
Specifically, each application program generates a corresponding cache folder in a storage space of the terminal, so as to store a cache file generated when the application program runs. When the application is frequently used, it is stated that the application is important for the user, and therefore, the cache file in the cache folder of the application is also important for the user, and therefore needs to be saved.
The embodiment provides a method for clearing cache by a terminal, which represents the importance of a cache file to a user through user participation, so that the cache file which is not needed by the user can be efficiently and automatically deleted, the cache file which is important to the user is reserved, the operation of the user is reduced, and the user experience is improved.
Example two
Based on the foregoing embodiment, the flow of the foregoing embodiment is described in detail by taking instant messaging software of a terminal as an example, referring to fig. 3, and the specific flow may include:
s301: traversing the cache file of the instant messaging software by the terminal;
specifically, the cache file in the instant messaging software generally stores chat records of users, different cache files correspond to different chat objects, and the chat objects may be single contacts or chat groups, which is not specifically limited in this embodiment.
S302: the terminal acquires the occurrence times of the user information and the total number of the chat records of the cache files in each cache file;
specifically, in the chat record corresponding to each cache file, when the user is more actively engaged in the chat record, the number of occurrences of the user information in the cache file is increased, and thus, the cache file of the chat record is more important for the user.
For example, taking the user name John as an example, in the chat record shown in fig. 4, the user does not participate in the chat, and the user information does not appear in the chat record, so that the chat record is considered to be unimportant to the user John, and the cache file of the chat record can be cleared when the cache is cleared;
still taking the user name John as an example, in the chat records shown in fig. 5, the user participates in the chat, so the user name and the chat records of the user appear in the chat records many times, so the chat records can be considered to be important for the user John, and the cache files of the chat records are saved when the cache is cleared;
still taking the user name John as an example, in the chat record shown in fig. 6, although the user does not participate in the chat, the user name appears in the chat record, so that the chat record can be considered as important for the user John, and the cache file of the chat record can be saved when the cache is cleared;
s303: the terminal obtains the ratio of the occurrence frequency of the user information to the total number of the chat records of the cache file;
s304: the terminal compares the ratio with a preset ratio threshold: when the ratio is not less than the preset ratio threshold, go to S305; when the ratio is greater than the preset ratio threshold, go to S306;
specifically, for S303 and S304, in the above description, it is assumed that m chat records are shared in a cache file of chat records, and n chat records in which user information is present, the ratio of the number of occurrences of user information as user participation to the total number of chat records in the cache fileSetting a preset ratio threshold value as a, wherein the preferred value of a is 30, and the method can be customized by a user;
if Q is larger than or equal to a, the chat records are proved to have great relation with the user, and the cache is reserved when being cleaned;
if Q < a, it shows that the chat record is not related to the user, and the cache can be cleared.
S305: the terminal marks the cache file as an unclonable identifier;
s306: the terminal marks the cache file as a cleanable identifier;
s307: and the terminal cleans the cache file corresponding to the cleanable identifier and stores the cache file corresponding to the unclonable identifier.
Optionally, in the specific implementation process of S305, S306, and S307, the terminal may further mark only the cache file that needs to be cleaned as a cleanable identifier, so that the terminal deletes the cache file with the cleanable identifier; or the terminal may further mark the cache file that needs to be stored as the unclonable identifier, so that the terminal deletes the cache file that does not have the unclonable identifier, which is not described in detail in this embodiment.
According to the embodiment, through a specific implementation process, the importance of the cache file to the user is represented through the user participation degree, so that the cache file which is not needed by the user can be deleted efficiently and automatically, the cache file which is important to the user is reserved, the operation of the user is reduced, and the user experience is improved.
EXAMPLE III
Based on the same technical concept as the foregoing embodiment, referring to fig. 7, a structure of a terminal 70 provided by an embodiment of the present invention is shown, where the terminal 70 may include: an acquisition unit 701, a comparison unit 702, a deletion unit 703, and a saving unit 704; wherein,
the obtaining unit 701 is configured to obtain user engagement degrees corresponding to cache files with different granularities according to a preset user engagement degree obtaining policy;
the comparing unit 702 is configured to compare the user engagement of the cache file with a preset threshold; and when the user engagement of the cached file is lower than the preset threshold, triggering the deleting unit 703; and when the user participation degree of the cache file is higher than the preset threshold, triggering the saving unit 704;
the deleting unit 703 is configured to delete the cache file;
the saving unit 704 is configured to save the cache file.
In the foregoing scheme, the obtaining unit 701 is configured to, when the granularity of the cache file is any cache file, use a ratio of the number of occurrences of the user information in the cache file to the number of pieces of cache information as the user participation degree corresponding to the cache file.
In the above scheme, when the cache file is a chat record of instant messaging software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: in the chat records, the ratio of the number of the chat records with the user information to the total number of the chat records is shown.
In the above scheme, when the cache file is a play cache of network video playing software, the ratio of the number of occurrences of the user information to the number of pieces of cache information includes: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
In the foregoing solution, the obtaining unit 701 is configured to, when the granularity of the cache file is a cache folder of any application program, use the frequency of use of the application program as a user engagement degree corresponding to the cache folder of the application program.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for a terminal to clear a cache is characterized in that the method comprises the following steps:
acquiring user participation degrees corresponding to cache files with different granularities according to a preset user participation degree acquisition strategy;
comparing the user participation degree of the cache file with a preset threshold value;
deleting the cache file when the user participation degree of the cache file is lower than the preset threshold value;
and when the user participation degree of the cache file is higher than the preset threshold value, saving the cache file.
2. The method according to claim 1, wherein the obtaining of the user engagement degrees corresponding to the cache files of different granularities according to a preset user engagement degree obtaining policy comprises:
and when the granularity of the cache file is any cache file, taking the ratio of the occurrence times of the user information in the cache file to the number of cache information pieces as the user participation degree corresponding to the cache file.
3. The method of claim 2, wherein when the cached file is a chat log of instant messaging software, the ratio of the number of occurrences of the user information to the number of pieces of cached information comprises: in the chat records, the ratio of the number of records in which the user information appears to the total number of chat records.
4. The method according to claim 2, wherein when the cache file is a play cache of network video playing software, the ratio of the number of occurrences of the user information to the number of pieces of cache information comprises: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
5. The method according to claim 1, wherein the obtaining of the user engagement degrees corresponding to the cache files of different granularities according to a preset user engagement degree obtaining policy comprises:
and when the granularity of the cache file is the cache folder of any application program, taking the use frequency of the application program as the user participation degree corresponding to the cache folder of the application program.
6. A terminal, characterized in that the terminal comprises: the device comprises an acquisition unit, a comparison unit, a deletion unit and a storage unit; wherein,
the acquiring unit is used for acquiring user participation degrees corresponding to cache files with different granularities according to a preset user participation degree acquiring strategy;
the comparison unit is used for comparing the user participation degree of the cache file with a preset threshold value; when the user participation degree of the cache file is lower than the preset threshold value, the deleting unit is triggered; when the user participation degree of the cache file is higher than the preset threshold value, the storage unit is triggered;
the deleting unit is used for deleting the cache file;
and the storage unit is used for storing the cache file.
7. The terminal according to claim 6, wherein the obtaining unit is configured to, when the granularity of the cache file is any cache file, use a ratio of the number of occurrences of the user information in the cache file to the number of pieces of cache information as the user participation degree corresponding to the cache file.
8. The terminal according to claim 7, wherein when the cache file is a chat log of instant messaging software, the ratio of the number of occurrences of the user information to the number of pieces of cache information comprises: in the chat records, the ratio of the number of the chat records with the user information to the total number of the chat records is shown.
9. The terminal according to claim 7, wherein when the cache file is a play cache of network video playing software, the ratio of the number of occurrences of the user information to the number of pieces of cache information comprises: the ratio of the playing times of the playing cache file to the total times of the video playing software playing the video.
10. The terminal according to claim 6, wherein the obtaining unit is configured to, when the cache file granularity is a cache folder of any application program, use the frequency of the application program as the user engagement degree corresponding to the cache folder of the application program.
CN201610289358.XA 2016-04-29 2016-04-29 A kind of method of terminal and terminal cleaning caching Active CN106021129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610289358.XA CN106021129B (en) 2016-04-29 2016-04-29 A kind of method of terminal and terminal cleaning caching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610289358.XA CN106021129B (en) 2016-04-29 2016-04-29 A kind of method of terminal and terminal cleaning caching

Publications (2)

Publication Number Publication Date
CN106021129A true CN106021129A (en) 2016-10-12
CN106021129B CN106021129B (en) 2018-11-16

Family

ID=57081669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610289358.XA Active CN106021129B (en) 2016-04-29 2016-04-29 A kind of method of terminal and terminal cleaning caching

Country Status (1)

Country Link
CN (1) CN106021129B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device
CN107220344A (en) * 2017-05-27 2017-09-29 广东欧珀移动通信有限公司 Document handling method and Related product
CN107864088A (en) * 2017-12-16 2018-03-30 苏州燕云网络技术有限公司 Chat message selectivity method for cleaning and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103281397A (en) * 2013-06-13 2013-09-04 苏州联讯达软件有限公司 Data-caching method and system based on timestamps and access density
CN103440207A (en) * 2013-07-31 2013-12-11 北京智谷睿拓技术服务有限公司 Caching method and caching device
US20140237071A1 (en) * 2011-09-28 2014-08-21 Telefonaktiebolaget L M Ericsson (Publ) Caching in Mobile Networks
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN105335102A (en) * 2015-10-10 2016-02-17 浪潮(北京)电子信息产业有限公司 Buffer data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237071A1 (en) * 2011-09-28 2014-08-21 Telefonaktiebolaget L M Ericsson (Publ) Caching in Mobile Networks
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103281397A (en) * 2013-06-13 2013-09-04 苏州联讯达软件有限公司 Data-caching method and system based on timestamps and access density
CN103440207A (en) * 2013-07-31 2013-12-11 北京智谷睿拓技术服务有限公司 Caching method and caching device
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN105335102A (en) * 2015-10-10 2016-02-17 浪潮(北京)电子信息产业有限公司 Buffer data processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device
CN106528442B (en) * 2016-10-27 2020-06-02 北京小米移动软件有限公司 Cache cleaning method and device
CN107220344A (en) * 2017-05-27 2017-09-29 广东欧珀移动通信有限公司 Document handling method and Related product
CN107220344B (en) * 2017-05-27 2019-12-06 Oppo广东移动通信有限公司 Document processing method and related product
CN107864088A (en) * 2017-12-16 2018-03-30 苏州燕云网络技术有限公司 Chat message selectivity method for cleaning and device

Also Published As

Publication number Publication date
CN106021129B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US8798684B2 (en) Mobile terminal and controlling method thereof
CN106572255B (en) Intelligent information sorting device and method and mobile terminal
CN107172121A (en) A kind of devices and methods therefor for preventing Data duplication from submitting
CN107038074B (en) Memory optimization device and method based on association strategy
CN106488282B (en) Multimedia information output control method and mobile terminal
CN105898069A (en) Information reminding method and device
CN106547439B (en) Method and device for processing message
US20180239839A1 (en) Method and Apparatus for Identifying To-Be-Cleaned Data, and Electronic Device
CN106021129B (en) A kind of method of terminal and terminal cleaning caching
KR20140013560A (en) Method for managing data and an electronic device thereof
US20150213280A1 (en) Method, electronic device and computer program product for screen shield
CN106843642A (en) The exchange method and mobile terminal of a kind of mobile terminal
CN116193419A (en) Communication method, device and equipment
CN106793026B (en) Method and terminal for realizing event reporting processing
US20240184434A1 (en) Display method and apparatus
CN105704527A (en) Terminal and method for video frame positioning for terminal
CN107395876A (en) Self-adaptive adjusting method and device for screen display content and electronic equipment
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN107861808A (en) A kind of terminal and the method for clearing up background application
CN109063623B (en) Fingerprint identification method, equipment and computer storage medium
CN105763911A (en) Method and terminal for video playing
CN106445291A (en) Method and terminal for achieving application processing
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN105681558A (en) Contact person information displaying method and terminal
CN106791217B (en) Image management optimization method of mobile terminal and mobile terminal

Legal Events

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