The content of the invention
In view of this, technical problems to be solved in this application there is provided a kind of equipment cache file method for sorting and
System, in memory space inadequate, guiding user deletes a part of previous cache file, reaches the mesh of cleaning memory space
's.
In order to solve the above-mentioned technical problem, the application has following technical solution:
A kind of method for sorting of equipment cache file, including:
Specified when equipment and treat cache file, then treat whether the volume of cache file is more than the current residue of equipment described in judgement
Memory space;If the volume for treating cache file is more than the residual memory space, volume and the institute of cache file will be treated
The difference of residual memory space is stated as supplement space;
According to default screening rule, the one or more cache files cached of screening are as file for clearance;It is described
The volume of file for clearance is not less than the supplement space;The file for clearance is added into list for clearance, and is treated described
Clear up list display;
Delete and instruct for list for clearance generation when equipment, then deleted according to the deletion instruction in list for clearance
File for clearance;
Start to cache and appointed treat cache file.
It is described that the file for clearance is added into list for clearance, and the list display for clearance is further included:
When equipment is for list for clearance generation extended instruction, then again according to default screening rule, screening one or
Multiple cache files cached are as file for clearance;The file for clearance is added into list for clearance.
It is described to be had according to default screening rule, the one or more cache files cached of screening as file for clearance
Body is:
According to the time sequencing for completing caching, one or more cache files cached that screening is initially completed caching are made
For file for clearance.
It is described to be had according to default screening rule, the one or more cache files cached of screening as file for clearance
Body is:
The time sequencing browsed according to completion, screening finally complete the cache file that the one or more browsed has cached and make
For file for clearance.
It is described to be had according to default screening rule, the one or more cache files cached of screening as file for clearance
Body is:
Filter out and browse the minimum one or more cache files cached of frequency as file for clearance.
It is described to be had according to default screening rule, the one or more cache files cached of screening as file for clearance
Body is:
The maximum one or more cache files cached of volume are filtered out as file for clearance.
A kind of clearing system of equipment cache file, including:
Space judgment module, for when equipment is specified when cache file, treated described in judgement cache file volume whether
The residual memory space current more than equipment;If the volume for treating cache file is more than the residual memory space, will treat
The volume of cache file and the difference of the residual memory space are as supplement space;
Screening management module, for being made according to default screening rule, the one or more cache files cached of screening
For file for clearance;The volume of the file for clearance is not less than the supplement space;The file for clearance is added and is treated clearly
List is managed, and by the list display for clearance;
File clean-up module, for when equipment deletes instruction for list for clearance generation, being instructed according to described delete
Delete the file for clearance in list for clearance;
File cache module, appointed cache file is treated for starting to cache.
Compared with prior art, method and system described herein, has reached following effect:
(1)Using the screening rule, filter out that desirability is relatively low and the caching of volume adequacy is literary for user in advance
Part is as file for clearance;
(2)By showing list for clearance to user, guiding user directly operates list for clearance, reaches cleaning
The purpose of memory space;
(3)Avoid in existing memory space scale removal process, the catalogue of cache file is transferred in the manual lookup of user
Process, also prevent user and forgets to clear up memory space, or not know how that the situation of cleaning memory space occurs.
Certainly, implementing any product of the application must be not necessarily required to reach all the above technique effect at the same time.
Embodiment
Some vocabulary has such as been used to censure specific components among specification and claim.Those skilled in the art should
It is understood that hardware manufacturer may call same component with different nouns.This specification and claims are not with name
The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical
The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit
In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution
Technical problem, basically reaches the technique effect.In addition, " coupling " word is herein comprising any direct and indirect electric property coupling
Means.Therefore, if one first device of described in the text is coupled to a second device, representing the first device can directly electrical coupling
The second device is connected to, or the second device is electrically coupled to indirectly by other devices or coupling means.Specification
Subsequent descriptions for implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application,
It is not limited to scope of the present application.The protection domain of the application is when subject to appended claims institute defender.
In the application, it will need to make equipment cache new cache file user, but during memory space inadequate, show one
List for clearance, so as to guide user to delete a part of first cache file, to reach the effect of cleaning memory space;To protect
Demonstrate,proving new cache file can smoothly be saved among the built-in storage of equipment.It is shown in Figure 1, delay for herein described equipment
Deposit the method for sorting of file.Method comprises the following steps described in the present embodiment:
Step 101, specify when equipment and treat cache file, then treats whether the volume of cache file is worked as more than equipment described in judgement
Preceding residual memory space;If the volume for treating cache file is more than the residual memory space, cache file will be treated
Volume and the difference of the residual memory space are as supplement space.
In the present embodiment, it is assumed that user is used as by the file A that equipment specifies a volume to be 1.5GB treats cache file.
Inevitable, need to leave the memory space more than 1.5GB in equipment, it is described to treat that cache file be completed to cache, be otherwise
Illustrate memory space inadequate.
After specifying and treating cache file, it is 0.9GB to read current device residual memory space, then treats cache file
Volume is more than the current residual memory space of equipment, illustrates current memory space deficiency, can not complete to treat that cache file A's is slow
Deposit.At this time, the volume and difference 1.5-0.9=0.6GB of the residual memory space that will treat cache file, as supplement space.Institute
State supplement space to also mean that, it is necessary to clean out at least space of 0.6GB in equipment storage, can realize and treat caching text
The caching of part A.
Step 102, according to default screening rule, the one or more cache files cached of screening are as text for clearance
Part;The volume of the file for clearance is not less than the supplement space;The file for clearance is added into list for clearance, and will
The list display for clearance.
When device memory is insufficient, buffered a large amount of cache files before general remark equipment, and without and
When arrangement or deletion, so as to occupy excessive space.In the present embodiment, in order to actively guide user in this case
The arrangement of memory space is completed, so will automatically be filtered out from the cache file previously cached one or more as treating
File is cleared up, for the deletion of user's selectivity to clean out memory space.Foregoing to have calculated, supplement space is 0.6GB, so sieve
The volume for the file for clearance selected also needs to be not less than the 0.6GB, so after file for clearance is deleted, can solve to deposit
The problem of storing up insufficient space.
The screening of file for clearance, is to be based on screening rule, is to sieve as far as possible in the basic principle of the screening rule
Cache file that user no longer needs is selected as file for clearance.Refer to following several ways:
A, according to the time sequencing for completing caching, screening is initially completed the cache file that the one or more of caching has cached
As file for clearance.
I.e. sequentially in time, it is believed that complete caching time it is more early, preserve it is more long in a device, most possibly no longer by
User needs, and can be deleted with prioritizing selection.
B, the time sequencing browsed according to completion, screening finally complete the cache file that the one or more browsed has cached
As file for clearance.
I.e. also according to time sequencing, it is believed that cache file browsed in the recent period, since having completed to browse, then most possibly
No longer needed by user, so prioritizing selection is deleted.
C, the minimum one or more cache files cached of broadcasting frequency are filtered out as file for clearance.
Think, browse that frequency is low this means that the desirability of user is low, can preferentially delete.
D, the maximum one or more cache files cached of volume are filtered out as file for clearance.
Which filters out the big caching text of occupied space as far as possible no longer from the angle of user demand degree
Part is preferentially deleted, to clean out more spaces as far as possible.
Any of the above mode can also be combined with each other in any way separately as the screening rule in the present embodiment
As the screening rule in the present embodiment.In addition, other similar screening modes, can also serve as screening rule and are incorporated in this
Among the overall technical architecture of embodiment.In short, the content in the present embodiment for screening rule does not limit specifically.
Assuming that in the present embodiment, a modes are selected then to filter out B, C, the D tri- for completing caching earliest as screening rule
Cache file, the volume of three are respectively 0.2GB, 0.3GB and 0.5GB, summation 1GB, more than the supplement space, then by this
Three is added among a list for clearance as file for clearance.
Then, the list for clearance is shown to user, user can learn each file for clearance for filtering out
The relevant information such as filename, file size, and decide whether to delete file for clearance.User can be directly to described for clearance
List input instruction, file for clearance therein is deleted.
It is so-called in the present embodiment actively to guide user to clear up memory space, substantially namely automatically one is shown to user
A list for clearance so that user can avoid manual lookup and transfer caching text directly to the list operation for clearance
The catalogue of part;It also prevent user to forget to clear up memory space, or do not know how that the situation of cleaning memory space occurs.
Preferably, can also include here in this step:
Step 102a, extended instruction is generated when equipment is directed to list for clearance, then again according to default screening rule, sieve
The one or more cache files cached of choosing are as file for clearance;The file for clearance is added into list for clearance.
That is, if user is not desired to delete the file for clearance filtered out first, or user is intended merely to delete it
Middle part file for clearance, and the volume of this part file for clearance is less than supplement space, user can also pass through extended instruction
More files for clearance are obtained, then are artificially selected.
Such as in the present embodiment, in file B, C, D for clearance for filtering out, user wishes to retain file D for clearance.But treat
It is 0.5GB to clear up the sum of volume of file B and C, less than supplement space.Then user will be referred to by equipment one extension of input at this time
Order, and then for clearance file new according to the screening of default screening rule again, i.e., it is 0.9GB's to filter out volume again
File E for clearance, is added to list for clearance.
Described to screen file for clearance again according to default screening rule, its principle is for clearance with being screened in step 102
File is identical, the narration being not repeated herein.
Step 103, when equipment for list for clearance generation delete instruction, then according to it is described delete instruction delete it is for clearance
File for clearance in list.
User can taking human as selection delete those files for clearance in list for clearance, directly to list for clearance into
Row operation, input delete instruction, delete any one or more files for clearance in list for clearance.In the present embodiment, use
Family, which can operate, only deletes file E for clearance, can also all delete file B, C, E for clearance, can realize cleaning foot
The purpose of enough memory spaces.
Step 104, start to cache and appointed treat cache file.
After cleaning obtains the memory space not less than supplement space size, you can start to cache and appointed treat caching text
Part.
As seen through the above technical solutions, beneficial effect existing for the present embodiment is:Using the screening rule, replace in advance
User filters out that desirability is relatively low and the cache file of volume adequacy is as file for clearance;And treated by being shown to user
List is cleared up, guiding user directly operates list for clearance, achievees the purpose that to clear up memory space;Avoid existing
In memory space scale removal process, the process of the catalogue of cache file is transferred in the manual lookup of user, be also prevent user and is forgotten clearly
Memory space is managed, or does not know how that the situation of cleaning memory space occurs.
Referring to the specific embodiment that Fig. 2 is herein described equipment cache file clearing system.It is described in the present embodiment
System is used for realization the method described in embodiment illustrated in fig. 1.The technical solution of the system is substantially real with the method shown in Fig. 1
It is consistent to apply example, it is corresponding in embodiment illustrated in fig. 1 to describe to be equally applicable among the present embodiment, narration is not repeated herein.This reality
Applying system described in example includes:
Space judgment module 201, is for when equipment is specified when cache file, the volume of cache file to be treated described in judgement
The no residual memory space current more than equipment;, will if the volume for treating cache file is more than the residual memory space
Treat the volume of cache file and the difference of the residual memory space as supplement space.
Screening management module 202, for according to default screening rule, the one or more cache files cached of screening
As file for clearance;The volume of the file for clearance is not less than the supplement space;The file for clearance is added and is treated
List is cleared up, and by the list display for clearance.
File clean-up module 203, for when equipment deletes instruction for list for clearance generation, being referred to according to the deletion
The file for clearance in list for clearance is deleted in order.
File cache module 204, appointed cache file is treated for starting to cache.
As seen through the above technical solutions, beneficial effect existing for system described in the present embodiment is:Advised using the screening
Then, filter out that desirability is relatively low and the cache file of volume adequacy is as file for clearance in advance for user;And pass through to
User shows list for clearance, and guiding user directly operates list for clearance, achievees the purpose that to clear up memory space;Keep away
Exempt from existing memory space scale removal process, the process of the catalogue of cache file is transferred in the manual lookup of user, also prevent
User forgets to clear up memory space, or does not know how that the situation of cleaning memory space occurs.
By various embodiments above as it can be seen that beneficial effect is existing for the application:
(1)Using the screening rule, filter out that desirability is relatively low and the caching of volume adequacy is literary for user in advance
Part is as file for clearance;
(2)By showing list for clearance to user, guiding user directly operates list for clearance, reaches cleaning
The purpose of memory space;
(3)Avoid in existing memory space scale removal process, the catalogue of cache file is transferred in the manual lookup of user
Process, also prevent user and forgets to clear up memory space, or not know how that the situation of cleaning memory space occurs.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, apparatus or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
Some preferred embodiments of the application have shown and described in described above, but as previously described, it should be understood that the application
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations,
Modification and environment, and above-mentioned teaching or the technology or knowledge of association area can be passed through in the scope of the invention is set forth herein
It is modified., then all should be in this Shen and changes and modifications made by those skilled in the art do not depart from spirit and scope
Please be in the protection domain of appended claims.