CN104462523B - The method for sorting and system of equipment cache file - Google Patents
The method for sorting and system of equipment cache file Download PDFInfo
- Publication number
- CN104462523B CN104462523B CN201410807792.3A CN201410807792A CN104462523B CN 104462523 B CN104462523 B CN 104462523B CN 201410807792 A CN201410807792 A CN 201410807792A CN 104462523 B CN104462523 B CN 104462523B
- Authority
- CN
- China
- Prior art keywords
- file
- clearance
- cache
- cached
- cleaned
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1737—Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种设备缓存文件的整理方法及系统,包括:当设备指定待缓存文件,则判断所述待缓存文件的体积是否大于设备当前的剩余存储空间;若所述待缓存文件的体积大于所述剩余存储空间,则将待缓存文件的体积与所述剩余存储空间之差作为补充空间;根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;所述待清理文件的体积不小于所述补充空间;将所述待清理文件加入待清理列表,并将所述待清理列表显示;当设备针对待清理列表生成删除指令,则根据所述删除指令删除待清理列表中的待清理文件;开始缓存被指定的待缓存文件。
The present application discloses a method and system for organizing cached files of a device, including: when the device specifies a file to be cached, judging whether the volume of the file to be cached is greater than the current remaining storage space of the device; if the volume of the file to be cached is Greater than the remaining storage space, the difference between the volume of the file to be cached and the remaining storage space is used as a supplementary space; according to preset screening rules, one or more cached cache files are screened as files to be cleaned; the The volume of the file to be cleaned is not smaller than the supplementary space; the file to be cleaned is added to the list to be cleaned, and the list to be cleaned is displayed; when the device generates a delete instruction for the list to be cleaned, delete the file to be cleaned according to the delete instruction Clean up the files to be cleaned in the list; start caching the specified files to be cached.
Description
技术领域technical field
本申请涉及数据集成和数据优化领域,具体地说,涉及一种设备缓存文件的整理方法及系统。The present application relates to the fields of data integration and data optimization, and in particular, relates to a method and system for sorting out device cache files.
背景技术Background technique
在当前,随着多媒体技术和网络信息传播技术的高度成熟,通过网络播放并浏览多媒体视频,早已成为成千上万用户的习惯。网络视频充分的满足了用户的工作、娱乐及学习等多样的需求。观看网络视频可谓是被广泛熟悉的一种生活方式。At present, with the high maturity of multimedia technology and network information dissemination technology, playing and browsing multimedia videos through the network has already become the habit of thousands of users. Network video fully meets the diverse needs of users for work, entertainment and learning. Watching online video is a widely familiar way of life.
用户观看网络视频,尤其是利用视频网站的应用程序(APP)观看网络视频时;既可以直接在线观看,即时缓存即时浏览;也可以预先将视频文件缓存到设备的内置存储当中,以便在设备不接入网络或者网络状态不佳的时候浏览。预先缓存到内置存储中的视频文件,将占据相应的存储空间。When users watch online videos, especially when they use the application program (APP) of the video website to watch online videos; they can watch online directly, cache and browse instantly; they can also pre-cache video files to the built-in storage of the device, so that they can be saved when the device is not in use. Browse when connected to the network or when the network status is poor. Video files pre-cached to the built-in storage will occupy the corresponding storage space.
对于移动设备来说,多数情况下内置的存储空间为十几或几十GB;即使市面上的大容量移动设备,存储空间至多就在百GB左右。所以如果应用程序保存大量的缓存文件,就有可能造成存储空间不足。For mobile devices, in most cases, the built-in storage space is more than a dozen or tens of GB; even for large-capacity mobile devices on the market, the storage space is at most about a hundred GB. So if the application saves a large number of cache files, it may cause insufficient storage space.
很多用户没有主动删除缓存文件的习惯。当存储空间不足,应用程序无法缓存新的视频文件之后,往往只能给出一个“空间不足”的提示,也不会引导用户删除先前的缓存文件。如果用户不知如何进行删除缓存文件的操作,便无法继续缓存其他的视频,影响正常的视频观看,降低用户体验。所以现有技术的缺陷在于,不存在一种有效的缓存文件整理方法。Many users do not have the habit of actively deleting cache files. When the storage space is insufficient and the application program cannot cache new video files, it often only gives a "insufficient space" prompt, and does not guide the user to delete the previous cached file. If the user does not know how to delete the cache file, he cannot continue to cache other videos, affecting normal video viewing and reducing user experience. Therefore, the defect of the prior art is that there is no effective method for organizing cached files.
发明内容Contents of the invention
有鉴于此,本申请所要解决的技术问题是提供了一种设备缓存文件的整理方法及系统,在存储空间不足时,引导用户删除一部分先前的缓存文件,达到清理存储空间的目的。In view of this, the technical problem to be solved by this application is to provide a method and system for organizing device cache files. When the storage space is insufficient, the user is guided to delete some of the previous cache files to achieve the purpose of clearing the storage space.
为了解决上述技术问题,本申请有如下技术方案:In order to solve the above technical problems, the application has the following technical solutions:
一种设备缓存文件的整理方法,包括:A method for organizing device cache files, comprising:
当设备指定待缓存文件,则判断所述待缓存文件的体积是否大于设备当前的剩余存储空间;若所述待缓存文件的体积大于所述剩余存储空间,则将待缓存文件的体积与所述剩余存储空间之差作为补充空间;When the device specifies a file to be cached, it is judged whether the volume of the file to be cached is larger than the current remaining storage space of the device; if the volume of the file to be cached is larger than the remaining storage space, the volume of the file to be cached The difference between the remaining storage space is used as supplementary space;
根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;所述待清理文件的体积不小于所述补充空间;将所述待清理文件加入待清理列表,并将所述待清理列表显示;According to preset screening rules, filter one or more cached cache files as files to be cleaned; the volume of the files to be cleaned is not less than the supplementary space; add the files to be cleaned to the list to be cleaned, and The list to be cleaned up is displayed;
当设备针对待清理列表生成删除指令,则根据所述删除指令删除待清理列表中的待清理文件;When the device generates a delete instruction for the list to be cleaned, delete the file to be cleaned in the list to be cleaned according to the delete instruction;
开始缓存被指定的待缓存文件。Start caching the specified file to be cached.
所述将所述待清理文件加入待清理列表,并将所述待清理列表显示还包括:The adding the file to be cleaned up to the list to be cleaned up, and displaying the list to be cleaned up also includes:
当设备针对待清理列表生成扩展指令,则再次根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;将所述待清理文件加入待清理列表。When the device generates an extended instruction for the list to be cleaned, it again filters one or more cached cache files as files to be cleaned according to preset filtering rules; and adds the files to be cleaned up to the list to be cleaned.
所述根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件具体为:According to the preset filtering rules, filtering one or more cached cache files as files to be cleaned up is specifically:
按照完成缓存的时间顺序,筛选最先完成缓存的一个或多个已缓存的缓存文件作为待清理文件。According to the chronological order of cache completion, filter one or more cached cache files that complete cache first as files to be cleaned.
所述根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件具体为:According to the preset filtering rules, filtering one or more cached cache files as files to be cleaned up is specifically:
按照完成浏览的时间顺序,筛选最后完成浏览的一个或多个已缓存的缓存文件作为待清理文件。According to the chronological order of finishing browsing, filter one or more cached cache files that are browsed last as files to be cleaned.
所述根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件具体为:According to the preset filtering rules, filtering one or more cached cache files as files to be cleaned up is specifically:
筛选出浏览频率最低的一个或多个已缓存的缓存文件作为待清理文件。One or more cached cache files with the lowest browsing frequency are filtered out as files to be cleaned.
所述根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件具体为:According to the preset filtering rules, filtering one or more cached cache files as files to be cleaned up is specifically:
筛选出体积最大的一个或多个已缓存的缓存文件作为待清理文件。Filter out one or more cached cache files with the largest volume as files to be cleaned.
一种设备缓存文件的整理系统,包括:A system for organizing device cache files, comprising:
空间判断模块,用于在设备指定待缓存文件时,判断所述待缓存文件的体积是否大于设备当前的剩余存储空间;若所述待缓存文件的体积大于所述剩余存储空间,则将待缓存文件的体积与所述剩余存储空间之差作为补充空间;A space judging module, used to determine whether the volume of the file to be cached is greater than the current remaining storage space of the device when the device specifies the file to be cached; if the volume of the file to be cached is greater than the remaining storage space, the file to be cached The difference between the volume of the file and the remaining storage space is used as supplementary space;
筛选管理模块,用于根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;所述待清理文件的体积不小于所述补充空间;将所述待清理文件加入待清理列表,并将所述待清理列表显示;The screening management module is used to filter one or more cached cache files as files to be cleaned according to preset screening rules; the volume of the files to be cleaned is not smaller than the supplementary space; and the file to be cleaned is added to the file to be cleaned Clean up the list, and display the list to be cleaned up;
文件清理模块,用于在设备针对待清理列表生成删除指令时,根据所述删除指令删除待清理列表中的待清理文件;A file cleaning module, configured to delete the files to be cleaned in the list to be cleaned according to the deletion instruction when the device generates a deletion instruction for the list to be cleaned;
文件缓存模块,用于开始缓存被指定的待缓存文件。The file cache module is used to start caching the specified file to be cached.
与现有技术相比,本申请所述的方法和系统,达到了如下效果:Compared with the prior art, the method and system described in this application achieve the following effects:
(1)利用所述筛选规则,预先替用户筛选出需求程度较低并且体积适当的缓存文件作为待清理文件;(1) Use the screening rules to pre-screen out cache files with low demand and appropriate size for users as files to be cleaned up;
(2)通过向用户显示待清理列表,引导用户直接对待清理列表进行操作,达到清理存储空间的目的;(2) By displaying the list to be cleaned up to the user, guide the user to directly operate on the list to be cleaned up, so as to achieve the purpose of cleaning up the storage space;
(3)避免了现有的存储空间清理过程中,用户手动的查找调取缓存文件的目录的过程,也防止了用户忘记清理存储空间,或者不知道如何清理存储空间的情况发生。(3) It avoids the process of the user manually searching for the directory to retrieve the cache file in the existing storage space cleaning process, and also prevents the situation that the user forgets to clean up the storage space, or does not know how to clean up the storage space.
当然,实施本申请的任一产品必不一定需要同时达到以上所述的所有技术效果。Of course, implementing any product of the present application does not necessarily need to achieve all the technical effects described above at the same time.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1为本申请实施例所述方法流程图;Fig. 1 is the flow chart of the method described in the embodiment of the present application;
图2为本申请实施例所述系统结构示意图。FIG. 2 is a schematic structural diagram of the system described in the embodiment of the present application.
具体实施方式Detailed ways
如在说明书及权利要求当中使用了某些词汇来指称特定组件。本领域技术人员应可理解,硬件制造商可能会用不同名词来称呼同一个组件。本说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。如在通篇说明书及权利要求当中所提及的“包含”为一开放式用语,故应解释成“包含但不限定于”。“大致”是指在可接收的误差范围内,本领域技术人员能够在一定误差范围内解决所述技术问题,基本达到所述技术效果。此外,“耦接”一词在此包含任何直接及间接的电性耦接手段。因此,若文中描述一第一装置耦接于一第二装置,则代表所述第一装置可直接电性耦接于所述第二装置,或通过其他装置或耦接手段间接地电性耦接至所述第二装置。说明书后续描述为实施本申请的较佳实施方式,然所述描述乃以说明本申请的一般原则为目的,并非用以限定本申请的范围。本申请的保护范围当视所附权利要求所界定者为准。Certain terms are used, for example, in the description and claims to refer to particular components. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. The specification and claims do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. As mentioned throughout the specification and claims, "comprising" is an open term, so it should be interpreted as "including but not limited to". "Approximately" means that within an acceptable error range, those skilled in the art can solve the technical problem within a certain error range and basically achieve the technical effect. In addition, the term "coupled" herein includes any direct and indirect electrical coupling means. Therefore, if it is described that a first device is coupled to a second device, it means that the first device may be directly electrically coupled to the second device, or indirectly electrically coupled through other devices or coupling means. connected to the second device. The subsequent description of the specification is a preferred implementation mode for implementing the application, but the description is for the purpose of illustrating the general principle of the application, and is not intended to limit the scope of the application. The scope of protection of the present application should be defined by the appended claims.
本申请中,将在用户需要令设备缓存新的缓存文件,但存储空间不足时,显示一个待清理列表,从而引导用户删除一部分在先的缓存文件,以达到清理存储空间的效果;以保证新的缓存文件能够顺利的保存到设备内置存储当中。参见图1所示,为本申请所述设备缓存文件的整理方法。本实施例中所述方法包括以下步骤:In this application, when the user needs to make the device cache new cache files, but the storage space is insufficient, a list to be cleaned up will be displayed to guide the user to delete some of the previous cache files to achieve the effect of cleaning up the storage space; to ensure that the new The cached files can be successfully saved to the built-in storage of the device. Referring to FIG. 1 , it is a method for sorting out device cache files described in this application. The method described in this embodiment includes the following steps:
步骤101、当设备指定待缓存文件,则判断所述待缓存文件的体积是否大于设备当前的剩余存储空间;若所述待缓存文件的体积大于所述剩余存储空间,则将待缓存文件的体积与所述剩余存储空间之差作为补充空间。Step 101. When the device specifies a file to be cached, determine whether the volume of the file to be cached is greater than the current remaining storage space of the device; The difference with the remaining storage space is used as supplementary space.
本实施例中,假设用户通过设备指定一个体积为1.5GB的文件A作为待缓存文件。必然的,设备中需要留有大于1.5GB的存储空间,所述待缓存文件才能够完成缓存,否则即说明存储空间不足。In this embodiment, it is assumed that the user specifies a file A with a volume of 1.5 GB as the file to be cached through the device. Inevitably, more than 1.5GB of storage space needs to be reserved in the device, so that the file to be cached can be cached, otherwise it means that the storage space is insufficient.
在指定了待缓存文件之后,读取当前设备剩余存储空间为0.9GB,则待缓存文件的体积大于设备当前的剩余存储空间,说明当前存储空间不足,无法完成待缓存文件A的缓存。此时,将待缓存文件的体积与所述剩余存储空间之差1.5-0.9=0.6GB,作为补充空间。所述补充空间也就意味着,必须在设备存储中清理出至少0.6GB的空间,才能够实现待缓存文件A的缓存。After specifying the file to be cached, it is read that the remaining storage space of the current device is 0.9GB, and the volume of the file to be cached is larger than the current remaining storage space of the device, indicating that the current storage space is insufficient, and the caching of the file A to be cached cannot be completed. At this time, the difference between the volume of the file to be cached and the remaining storage space of 1.5-0.9=0.6 GB is used as the supplementary space. The supplementary space also means that at least 0.6 GB of space must be cleared in the device storage to realize the caching of the file A to be cached.
步骤102、根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;所述待清理文件的体积不小于所述补充空间;将所述待清理文件加入待清理列表,并将所述待清理列表显示。Step 102: Screen one or more cached cache files as files to be cleaned according to preset screening rules; the volume of the files to be cleaned is not smaller than the supplementary space; add the files to be cleaned to the list to be cleaned, And display the list to be cleaned up.
设备存储空间不足时,一般说明设备之前已经缓存了大量缓存文件,并且没有及时的整理或者删除,从而占用了过多的空间。本实施例中,为了在这种情况下主动引导用户完成存储空间的整理,所以将自动的从先前已缓存的缓存文件中筛选出一个或多个作为待清理文件,供用户选择性的删除以清理出存储空间。前述已计算,补充空间为0.6GB,所以筛选出的待清理文件的体积也需不小于所述0.6GB,这样在删除待清理文件之后,方可解决存储空间不足的问题。When the storage space of the device is insufficient, it generally means that the device has cached a large number of cache files before, and they have not been sorted or deleted in time, thus occupying too much space. In this embodiment, in order to actively guide the user to complete the arrangement of the storage space in this case, one or more files to be cleaned will be automatically selected from the previously cached cache files for the user to selectively delete. Clear out storage space. It has been calculated above that the supplementary space is 0.6GB, so the volume of the selected files to be cleaned must not be smaller than the above 0.6GB, so that after deleting the files to be cleaned, the problem of insufficient storage space can be solved.
待清理文件的筛选,是基于筛选规则,所述筛选规则的基本原则上是尽可能的筛选出用户不再需要的缓存文件作为待清理文件。可参考如下几种方式:The screening of the files to be cleaned is based on screening rules, and the basic principle of the screening rules is to screen out cache files that are no longer needed by the user as files to be cleaned as much as possible. You can refer to the following ways:
a、按照完成缓存的时间顺序,筛选最先完成缓存的一个或多个已缓存的缓存文件作为待清理文件。a. According to the chronological order of cache completion, filter one or more cached cache files that are cached first as files to be cleaned.
即按照时间顺序,认为完成缓存的时间越早,保存在设备中越久,最有可能不再被用户需要,可以优先选择删除。That is, according to the chronological order, it is considered that the earlier the cache is completed, the longer it is stored in the device, and it is most likely that it will no longer be needed by the user, and you can choose to delete it first.
b、按照完成浏览的时间顺序,筛选最后完成浏览的一个或多个已缓存的缓存文件作为待清理文件。b. According to the chronological order of browsing completion, filter one or more cached cache files that have been browsed last as files to be cleaned.
即同样按照时间顺序,认为近期浏览过的缓存文件,既然已完成浏览,则最有可能不再被用户需要,所以优先选择删除。That is, according to the same chronological order, it is considered that the cache files that have been browsed recently, since the browsing has been completed, are most likely to be no longer needed by the user, so it is preferred to delete them.
c、筛选出播放频率最低的一个或多个已缓存的缓存文件作为待清理文件。c. Filter out one or more cached cache files with the lowest playback frequency as files to be cleaned.
即认为,浏览频率低即意味着用户的需求程度低,可以优先删除。That is to say, the low browsing frequency means that the user's demand is low, and it can be deleted first.
d、筛选出体积最大的一个或多个已缓存的缓存文件作为待清理文件。d. Filter out one or more cached cache files with the largest volume as files to be cleaned.
该方式不再从用户需求程度的角度出发,而是尽可能筛选出占用空间大的缓存文件优先删除,以便尽可能的清理出更多的空间。This method no longer starts from the perspective of the degree of user demand, but instead screens out cache files that occupy a large space and deletes them first, so as to clean up as much space as possible.
以上任意方式均可单独作为本实施例中的筛选规则,也可按照任意方式相互结合作为本实施例中的筛选规则。另外,其他类似的筛选方式,同样可以作为筛选规则结合在本实施例的整体技术方案当中。总之,本实施例中对于筛选规则的内容不作具体的限定。Any of the above methods can be used alone as the screening rule in this embodiment, or can be combined with each other in any manner as the screening rule in this embodiment. In addition, other similar screening methods can also be incorporated into the overall technical solution of this embodiment as screening rules. In short, there is no specific limitation on the content of the filtering rules in this embodiment.
假设本实施例中,选择a方式作为筛选规则,则筛选出最早完成缓存的B、C、D三个缓存文件,三者的体积分别为0.2GB、0.3GB和0.5GB,总和为1GB,大于所述补充空间,则将此三者作为待清理文件,加入到一个待清理列表当中。Assuming that in this embodiment, mode a is selected as the screening rule, the three cache files B, C, and D that have been cached the earliest are screened out. The volumes of the three are 0.2GB, 0.3GB, and 0.5GB respectively, and the total is 1GB, which is greater than For the supplementary space, these three are used as files to be cleaned up and added to a list to be cleaned up.
随后,将所述待清理列表向用户显示,用户即可获悉筛选出的各个待清理文件的文件名、文件体积等相关的信息,并决定是否将待清理文件删除。用户可直接对所述待清理列表输入指令,将其中的待清理文件删除。Subsequently, the to-be-cleaned list is displayed to the user, and the user can learn information related to the file names and file volumes of each selected file to be cleaned, and decide whether to delete the to-be-cleaned file. The user can directly input an instruction to the list to be cleaned up to delete the files to be cleaned up.
本实施例中所谓主动引导用户清理存储空间,实质上也就是自动的向用户显示一个待清理列表,使得用户可以直接向所述待清理列表操作,避免了手动的查找调取缓存文件的目录;也防止了用户忘记清理存储空间,或者不知道如何清理存储空间的情况发生。In this embodiment, the so-called actively guiding the user to clean up the storage space is in essence to automatically display a list to be cleaned up to the user, so that the user can directly operate on the list to be cleaned up, avoiding the manual search for the directory of the cached file; It also prevents the situation that the user forgets to clean up the storage space, or does not know how to clean up the storage space.
优选的,本步骤中在此处还可以包括:Preferably, this step can also include here:
步骤102a、当设备针对待清理列表生成扩展指令,则再次根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;将所述待清理文件加入待清理列表。Step 102a: When the device generates an extended instruction for the list to be cleaned, it again filters one or more cached cache files as files to be cleaned according to preset filtering rules; and adds the files to be cleaned up to the list to be cleaned up.
也就是说,如果用户不想删除首次筛选出的待清理文件,或者用户仅希望删除其中部分待清理文件,而这部分待清理文件的体积小于补充空间,用户还可以通过扩展指令得到更多待清理文件,再进行人为选择。That is to say, if the user does not want to delete the files to be cleaned up for the first time, or the user only wants to delete some of the files to be cleaned up, and the volume of these files to be cleaned up is smaller than the supplementary space, the user can also get more to be cleaned up through the extension command file, and then make a manual selection.
例如本实施例中,筛选出的待清理文件B、C、D中,用户希望保留待清理文件D。但待清理文件B和C的体积之和为0.5GB,小于补充空间。则此时用户将通过设备输入一个扩展指令,进而再一次的根据预设的筛选规则筛选新的待清理文件,即重新筛选出体积为0.9GB的待清理文件E,加入到待清理列表。For example, in this embodiment, among the filtered files B, C, and D to be cleaned up, the user wishes to keep the file D to be cleaned up. However, the sum of the volumes of files B and C to be cleaned up is 0.5GB, which is less than the supplementary space. At this time, the user will input an extended command through the device, and then filter new files to be cleaned up again according to the preset filtering rules, that is, re-screen out the file E to be cleaned up with a volume of 0.9GB, and add it to the list to be cleaned up.
所述再次根据预设的筛选规则筛选待清理文件,其原理与步骤102中筛选待清理文件相同,在此不再重复的叙述。The principle of filtering the files to be cleaned up again according to the preset filtering rules is the same as that of filtering the files to be cleaned up in step 102, and the description will not be repeated here.
步骤103、当设备针对待清理列表生成删除指令,则根据所述删除指令删除待清理列表中的待清理文件。Step 103, when the device generates a deletion instruction for the list to be cleaned, delete the files to be cleaned in the list to be cleaned according to the deletion instruction.
用户可以人为的选择删除待清理列表中的那些待清理文件,直接对待清理列表进行操作,输入删除指令,删除待清理列表中的任意一个或多个待清理文件。本实施例中,用户可以操作仅删除待清理文件E,也可以将待清理文件B、C、E全部删除,都能够实现清理足够的存储空间的目的。The user can manually choose to delete those files to be cleaned in the list to be cleaned up, directly operate the list to be cleaned up, input a delete command, and delete any one or more files to be cleaned up in the list to be cleaned up. In this embodiment, the user can delete only the file E to be cleaned up, or delete all the files B, C, and E to be cleaned up, all of which can achieve the purpose of clearing up enough storage space.
步骤104、开始缓存被指定的待缓存文件。Step 104, start caching the designated file to be cached.
当清理得到不小于补充空间大小的存储空间后,即可开始缓存被指定的待缓存文件。When the storage space not less than the size of the supplementary space is cleared, the designated files to be cached can be started to be cached.
通过以上技术方案可知,本实施例存在的有益效果是:利用所述筛选规则,预先替用户筛选出需求程度较低并且体积适当的缓存文件作为待清理文件;并通过向用户显示待清理列表,引导用户直接对待清理列表进行操作,达到清理存储空间的目的;避免了现有的存储空间清理过程中,用户手动的查找调取缓存文件的目录的过程,也防止了用户忘记清理存储空间,或者不知道如何清理存储空间的情况发生。It can be seen from the above technical solutions that the beneficial effects of this embodiment are: using the screening rules, pre-filtering cache files with low demand and appropriate volume for the user as files to be cleaned; and by displaying the list to be cleaned to the user, Guide the user to directly operate on the list to be cleaned up to achieve the purpose of cleaning up the storage space; avoid the process of manually searching for the directory of the cached file in the existing storage space cleaning process, and also prevent the user from forgetting to clean up the storage space, or It happens that I don't know how to clean up storage space.
参见图2为本申请所述设备缓存文件整理系统的具体实施例。本实施例中所述系统用于实现图1所示实施例中所述的方法。所述系统的技术方案本质上与图1所示的方法实施例一致,图1所示实施例中相应描述同样适用于本实施例当中,在此不作重复叙述。本实施例中所述系统包括:Referring to FIG. 2 is a specific embodiment of the device cache file organizing system described in this application. The system described in this embodiment is used to implement the method described in the embodiment shown in FIG. 1 . The technical solution of the system is essentially consistent with the method embodiment shown in FIG. 1 , and the corresponding descriptions in the embodiment shown in FIG. 1 are also applicable to this embodiment, and will not be repeated here. The system described in this embodiment includes:
空间判断模块201,用于在设备指定待缓存文件时,判断所述待缓存文件的体积是否大于设备当前的剩余存储空间;若所述待缓存文件的体积大于所述剩余存储空间,则将待缓存文件的体积与所述剩余存储空间之差作为补充空间。The space judging module 201 is used for judging whether the volume of the file to be cached is larger than the current remaining storage space of the device when the device specifies the file to be cached; if the volume of the file to be cached is larger than the remaining storage space, the The difference between the volume of the cache file and the remaining storage space is used as supplementary space.
筛选管理模块202,用于根据预设的筛选规则,筛选一个或多个已缓存的缓存文件作为待清理文件;所述待清理文件的体积不小于所述补充空间;将所述待清理文件加入待清理列表,并将所述待清理列表显示。The screening management module 202 is configured to screen one or more cached cache files as files to be cleaned according to preset screening rules; the volume of the files to be cleaned is not smaller than the supplementary space; and the file to be cleaned is added to list to be cleaned up, and display the list to be cleaned up.
文件清理模块203,用于在设备针对待清理列表生成删除指令时,根据所述删除指令删除待清理列表中的待清理文件。The file cleaning module 203 is configured to, when the device generates a deletion instruction for the list to be cleaned, delete the files to be cleaned in the list to be cleaned according to the deletion instruction.
文件缓存模块204,用于开始缓存被指定的待缓存文件。The file caching module 204 is configured to start caching the specified file to be cached.
通过以上技术方案可知,本实施例所述系统存在的有益效果是:利用所述筛选规则,预先替用户筛选出需求程度较低并且体积适当的缓存文件作为待清理文件;并通过向用户显示待清理列表,引导用户直接对待清理列表进行操作,达到清理存储空间的目的;避免了现有的存储空间清理过程中,用户手动的查找调取缓存文件的目录的过程,也防止了用户忘记清理存储空间,或者不知道如何清理存储空间的情况发生。From the above technical solutions, it can be seen that the beneficial effects of the system in this embodiment are: using the screening rules, pre-filtering cache files with low demand and appropriate volume for the user as files to be cleaned; Cleanup list guides users to directly operate on the cleanup list to achieve the purpose of cleaning up the storage space; avoids the process of manually searching for the directory to retrieve cached files in the existing storage space cleaning process, and also prevents users from forgetting to clean up the storage space space, or don't know how to clear storage space.
通过以上各实施例可见,本申请存在的有益效果是:Visible by above each embodiment, the beneficial effect that the present application exists is:
(1)利用所述筛选规则,预先替用户筛选出需求程度较低并且体积适当的缓存文件作为待清理文件;(1) Use the screening rules to pre-screen out cache files with low demand and appropriate size for users as files to be cleaned up;
(2)通过向用户显示待清理列表,引导用户直接对待清理列表进行操作,达到清理存储空间的目的;(2) By displaying the list to be cleaned up to the user, guide the user to directly operate on the list to be cleaned up, so as to achieve the purpose of cleaning up the storage space;
(3)避免了现有的存储空间清理过程中,用户手动的查找调取缓存文件的目录的过程,也防止了用户忘记清理存储空间,或者不知道如何清理存储空间的情况发生。(3) It avoids the process of the user manually searching for the directory to retrieve the cache file in the existing storage space cleaning process, and also prevents the situation that the user forgets to clean up the storage space, or does not know how to clean up the storage space.
本领域内的技术人员应明白,本申请的实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, apparatuses, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
上述说明示出并描述了本申请的若干优选实施例,但如前所述,应当理解本申请并非局限于本文所披露的形式,不应看作是对其他实施例的排除,而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本申请的精神和范围,则都应在本申请所附权利要求的保护范围内。The above description shows and describes several preferred embodiments of the present application, but as mentioned above, it should be understood that the present application is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various Various other combinations, modifications, and environments can be made within the scope of the inventive concept described herein, by the above teachings or by skill or knowledge in the relevant field. However, modifications and changes made by those skilled in the art do not depart from the spirit and scope of the present application, and should all be within the protection scope of the appended claims of the present application.
Claims (6)
- A kind of 1. method for sorting of equipment cache file, it is characterised in that including:Specified when equipment and treat cache file, then treat whether the volume of cache file is more than the current remaining storage of equipment described in judgement Space;If the volume for treating cache file is more than the residual memory space, the volume for treating cache file is remained with described The difference of remaining memory space is 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 to treat clearly The volume of reason file is not less than the supplement space;The file for clearance is added into list for clearance, and will be described for clearance List display;Instruct, then treated clearly according to described delete in instruction deletion list for clearance when equipment generates deletion for list for clearance Manage file;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:If user is not desired to delete the file for clearance filtered out first, or user is intended merely to delete which part text for clearance Part, and the volume of part file for clearance is less than supplement space, and extended instruction is generated when equipment is directed to list for clearance, then again It is secondary according to default screening rule, the one or more cache files cached of screening are as file for clearance;Treated described clearly Manage file and add list for clearance.
- 2. the method for sorting of equipment cache file according to claim 1, it is characterised in that described to be advised according to default screening Then, screen one or more cache files cached is specially as file for clearance:The time sequencing cached according to completion, the cache files that the one or more that screening is initially completed caching has cached, which are used as, to be treated Clear up file.
- 3. the method for sorting of equipment cache file according to claim 1, it is characterised in that described to be advised according to default screening Then, screen one or more cache files cached is specially as file for clearance:The time sequencing browsed according to completion, screening finally complete the cache files conduct that the one or more browsed has cached and treat Clear up file.
- 4. the method for sorting of equipment cache file according to claim 1, it is characterised in that described to be advised according to default screening Then, screen one or more cache files cached is specially as file for clearance:Filter out and browse the minimum one or more cache files cached of frequency as file for clearance.
- 5. the method for sorting of equipment cache file according to claim 1, it is characterised in that described to be advised according to default screening Then, screen one or more cache files cached is specially as file for clearance:The maximum one or more cache files cached of volume are filtered out as file for clearance.
- A kind of 6. clearing system of equipment cache file, it is characterised in that including:Space judgment module, for when equipment is specified when cache file, treating whether the volume of cache file is more than described in judgement The current residual memory space of equipment;If the volume for treating cache file is more than the residual memory space, will wait to cache The volume of file and the difference of the residual memory space are as supplement space;Screening management module, for according to default screening rule, the one or more cache files cached of screening, which are used as, to be treated Clear up file;The volume of the file for clearance is not less than the supplement space;The file for clearance is added into row for clearance Table, and by the list display for clearance;If user is not desired to delete the file for clearance filtered out first, or user only wishes Hope and delete which part file for clearance, and the volume of part file for clearance is less than supplement space, when equipment is clear for treating List generation extended instruction is managed, then is made again according to default screening rule, the one or more cache files cached of screening For file for clearance;File clean-up module, for when equipment deletes instruction for list for clearance generation, being deleted according to the deletion instruction File for clearance in list for clearance;File cache module, appointed cache file is treated for starting to cache.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410807792.3A CN104462523B (en) | 2014-12-23 | 2014-12-23 | The method for sorting and system of equipment cache file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410807792.3A CN104462523B (en) | 2014-12-23 | 2014-12-23 | The method for sorting and system of equipment cache file |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104462523A CN104462523A (en) | 2015-03-25 |
| CN104462523B true CN104462523B (en) | 2018-05-01 |
Family
ID=52908558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410807792.3A Expired - Fee Related CN104462523B (en) | 2014-12-23 | 2014-12-23 | The method for sorting and system of equipment cache file |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104462523B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105684450A (en) * | 2016-01-08 | 2016-06-15 | 王晓光 | A storage management method and system for a video network |
| CN107678687A (en) * | 2017-09-22 | 2018-02-09 | 北京小米移动软件有限公司 | Memory space acquisition methods and device |
| CN109189739B (en) * | 2018-09-20 | 2020-11-03 | 北京京东尚科信息技术有限公司 | Cache space recovery method and device |
| CN111147540B (en) * | 2019-11-18 | 2022-09-16 | 深圳市元征科技股份有限公司 | File transmission method, device, equipment and storage medium |
| CN113377724A (en) * | 2021-07-02 | 2021-09-10 | 厦门雅基软件有限公司 | Cache space management method, device and storage medium |
| CN115951831B (en) * | 2022-12-26 | 2026-01-30 | 山东亚华电子股份有限公司 | A method, apparatus, device, and medium for managing stored files. |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102164160A (en) * | 2010-12-31 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Method, device and system for supporting large quantity of concurrent downloading |
| CN103559299A (en) * | 2013-11-14 | 2014-02-05 | 贝壳网际(北京)安全技术有限公司 | Method, device and mobile terminal for cleaning up files |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101407630B1 (en) * | 2007-09-07 | 2014-06-13 | 삼성전자주식회사 | How to Replace Cached Data in Distributed File Systems and Distributed File Systems |
| DE102012201534B4 (en) * | 2011-12-09 | 2018-08-30 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Device for caching a scalable original file |
-
2014
- 2014-12-23 CN CN201410807792.3A patent/CN104462523B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102164160A (en) * | 2010-12-31 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Method, device and system for supporting large quantity of concurrent downloading |
| CN103559299A (en) * | 2013-11-14 | 2014-02-05 | 贝壳网际(北京)安全技术有限公司 | Method, device and mobile terminal for cleaning up files |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104462523A (en) | 2015-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104462523B (en) | The method for sorting and system of equipment cache file | |
| US12360958B2 (en) | Widget synchronization in accordance with synchronization preferences | |
| EP1942424B1 (en) | Background data transmission between media device and host device | |
| CN101896880B (en) | Method for providing graphical user interface (GUI) using divided screen and multimedia device using the same | |
| US8850140B2 (en) | Data backup for mobile device | |
| US8631088B2 (en) | Prioritized data synchronization with host device | |
| CN101627382B (en) | Sync data with host device based on sync preferences | |
| CN103645914B (en) | Software cleaning method and device | |
| EP2854049A1 (en) | Method for managing and displaying folders based on android system and mobile terminal thereof | |
| US9245256B2 (en) | Assigning and managing reviews of a computing file | |
| KR101828642B1 (en) | Brokered item access for isolated applications | |
| JP5336473B2 (en) | Apparatus and method for selecting new data without affecting download speed | |
| US20170237936A1 (en) | Information processing apparatus, method for controlling the information processing apparatus, and recording medium | |
| WO2021017899A1 (en) | Method for efficiently cleaning equipment files and device | |
| CN103279337A (en) | Method and apparatus for executing application file and screen capture method and apparatus therefor | |
| CN116244471A (en) | Player instance management method, device, electronic device and storage medium | |
| CN107908436B (en) | Method and system for simplifying user operation | |
| CN105786888A (en) | Method and system for generating shortcut option as well as electronic equipment | |
| WO2015041736A1 (en) | Discovery of new media items | |
| CN111949618A (en) | A processing method and processing device | |
| JP2012088940A (en) | Information processor, information processing method, and program | |
| US9959294B2 (en) | Organizing digital images from multiple image repositories | |
| EP1955203B1 (en) | Storage profile generation for network-connected portable storage devices | |
| JP5670391B2 (en) | Content management apparatus, content management method, and content management program | |
| JP5827813B2 (en) | Monitoring device, image monitoring system, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C Patentee after: Youku network technology (Beijing) Co.,Ltd. Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C Patentee before: 1VERGE INTERNET TECHNOLOGY (BEIJING) Co.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20200319 Address after: 310016 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C Patentee before: Youku network technology (Beijing) Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180501 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |