CN105095107B - Clear up data cached method and device - Google Patents

Clear up data cached method and device Download PDF

Info

Publication number
CN105095107B
CN105095107B CN201410185370.7A CN201410185370A CN105095107B CN 105095107 B CN105095107 B CN 105095107B CN 201410185370 A CN201410185370 A CN 201410185370A CN 105095107 B CN105095107 B CN 105095107B
Authority
CN
China
Prior art keywords
data cached
preset
deletion condition
data
collected
Prior art date
Application number
CN201410185370.7A
Other languages
Chinese (zh)
Other versions
CN105095107A (en
Inventor
潘述鑫
黄炜
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201410185370.7A priority Critical patent/CN105095107B/en
Publication of CN105095107A publication Critical patent/CN105095107A/en
Application granted granted Critical
Publication of CN105095107B publication Critical patent/CN105095107B/en

Links

Abstract

Data cached method is cleared up the invention discloses a kind of, the method comprising the steps of: when receiving data cached deletion instruction, whether judge to store in intelligent terminal data cached meets the preset deletion condition, the default deletion condition includes data cached collecting state, data cached access state, data cached storage time, data cached index table status;It is described it is data cached meet the preset deletion condition when, the data cached deletion that will meet the preset deletion condition;It is described it is data cached be unsatisfactory for default deletion condition when, the data cached reservation of default deletion condition will be unsatisfactory for.Data cached device is cleared up the invention also discloses a kind of.Present invention realization selectively, is reasonably cleared up data cached.It while guaranteeing to store valid cache data, and avoids the problem that storage is largely data cached and brings memory space inadequate, save memory space, and then improve the performance of system.

Description

Clear up data cached method and device

Technical field

The present invention relates to technical field of data processing, it is related specifically to clear up data cached method and device.

Background technique

With the continuous development of intellectual technology, more and more intelligent terminals are (for example, smart phone, tablet computer, notebook Computer, desktop computer, all-in-one machine etc.) enter the routine work of people, in life.User can pass through intelligent terminal and other User carries out information exchange, can also obtain the information such as some texts, video or picture from network by intelligent terminal.In user When carrying out information exchange by intelligent terminal and other users, the interactive information (chat record etc.) for needing to generate is saved to intelligence It can terminal local;When user obtains information by intelligent terminal, will want to obtain according to the download address of information or chained address The information taken downloads to intelligent terminal local and saves.The data that these are saved in intelligent terminal local are referred to as data cached (for example, image data, web browsing data etc.).It, will in intelligent terminal as interactive information and/or the information content of acquisition increase It can generate a large amount of data cached, and the memory space of intelligent terminal is relatively limited, it is therefore desirable to will periodically be stored in intelligent end Data cached on end is cleared up.

In the prior art, the data cached mode cleared up of intelligent terminal will be stored in are as follows: receiving user's needle When to data cached deletion instruction, intelligent terminal can be by all data cached deletions of generation.Therefore, existing to intelligent end The defect of the data cached mode cleared up is in end: can only can not have selection disposably by all data cached cleanings Property, reasonably clear up data cached, it is effective data cached to retain.

Summary of the invention

The embodiment of the present invention, which provides, clears up data cached method and apparatus, realizes selectively, reasonably to caching Data are cleared up, and save memory space, and then improve the performance of system.

The embodiment of the present invention propose it is a kind of clear up data cached method, the method comprising the steps of:

When receiving data cached deletion instruction, whether judge to store in intelligent terminal data cached meets default delete Except condition, the default deletion condition includes data cached collecting state, data cached access state, data cached deposits Store up time, data cached index table status;

It is described it is data cached meet the preset deletion condition when, the data cached deletion that will meet the preset deletion condition;

It is described it is data cached be unsatisfactory for default deletion condition when, the data cached guarantor of default deletion condition will be unsatisfactory for It stays.

The embodiment of the present invention also propose it is a kind of clear up data cached device, which includes:

Judgment module, for judging to store in intelligent terminal data cached when receiving data cached deletion instruction Whether meet the preset deletion condition, the default deletion condition includes data cached collecting state, data cached access shape State, data cached storage time, data cached index table status;

Buffer process module, for it is described it is data cached meet the preset deletion condition when, will meet the preset deletion condition Data cached deletion;And

It is described it is data cached be unsatisfactory for default deletion condition when, the data cached guarantor of default deletion condition will be unsatisfactory for It stays.

The embodiment of the present invention will meet default delete by the judgement of the data cached carry out default deletion condition to storage Except the data cached deletion of condition, realization selectively, is reasonably cleared up data cached.Guaranteeing valid cache It while data store, and avoids the problem that storage is largely data cached and brings memory space inadequate, save memory space, in turn The performance of raising system.

Detailed description of the invention

Fig. 1 is the flow diagram that the present invention clears up data cached method first embodiment;

Fig. 2 a be the present invention clear up received in data cached method it is data cached delete before instruction data cached delete Except examples of interfaces figure;

Fig. 2 b is that the present invention clears up and receives data cached data cached when deleting instruction in data cached method and delete Except examples of interfaces figure;

Fig. 2 c is that the present invention clears up the data cached deletion carried out when data cached deletion instructs in data cached method Examples of interfaces figure;

Fig. 3 is the flow diagram that the present invention clears up data cached method second embodiment;

Fig. 4 is the flow diagram that the present invention clears up data cached method 3rd embodiment;

Fig. 5 is the flow diagram that the present invention clears up data cached method fourth embodiment;

Fig. 6 is the flow diagram that the present invention clears up data cached the 5th embodiment of method;

Fig. 7 is the flow diagram that the present invention clears up data cached method sixth embodiment;

Fig. 8 is the functional block diagram that the present invention clears up data cached device preferred embodiment;

Fig. 9 is the hardware structural diagram for the terminal that the present invention clears up where data cached device.

The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.

Specific embodiment

It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.

The flow chart of the first embodiment of data cached method is cleared up as shown in FIG. 1, FIG. 1 is the present invention.The present embodiment The data cached method of cleaning mentioned the following steps are included:

Whether step S10 judges to store in intelligent terminal data cached full when receiving data cached deletion instruction Sufficient default deletion condition, the default deletion condition include data cached collecting state, data cached access state, caching The storage time of data, data cached index table status;

User using intelligent terminal and other users when being carried out information exchange or being obtained information from network, it will It generates some data cached in intelligent terminal, while can also be stored with data cached concordance list, the concordance list in intelligent terminal It may include the information such as data cached issuing time, data cached title, data cached storage location.As interaction is believed Breath and/or the information content obtained increase, and will also generate in intelligent terminal a large amount of data cached, need timing to intelligent terminal The data cached of middle storage is cleared up.The data cached triggering for deleting instruction can be the caching on user's click intelligent terminal Data delete button or the deletion option clicked in data cached menu are also possible to trigger data cached deletion instruction Intelligent terminal is after certain interval of time (1 day, one week), the data cached deletion of automatic trigger.The data cached deletion refers to Enable includes that whole deletion instructions and part deletion instruct.When user needs data cached the clearing up to intelligent terminal storage When, it clicks the part that part is deleted data cached button or clicked in data cached menu and deletes option, into caching number According to interface is deleted, judge to store in intelligent terminal it is data cached whether meet the preset deletion condition, i.e., in traversal intelligent terminal Storage it is data cached, therefrom find out meet the preset deletion condition it is data cached.For example, as shown in Figure 2 a, when the user clicks When the delete button of part, data cached deletion interface as shown in Figure 2 b will occur, data cached the deletions interface include return, Pause continues, stop button, and so that user carries out control operation to data cached deletion process, user can be temporary by clicking Stop, continue, stop button controls data cached deletion process, main interface can also be back to by clicking return push-button.It should Data cached interface of deleting also can also include the data cached information table stored, which includes caching The information such as the ID of data, data cached storage time, data cached access state, data cached collecting state, for User knows the progress of data cached deletion, wherein the ture for accessing column indicates that data cached access state is to be accessed, Data cached not visited state is expressed as False, and the ture of gallery indicates that data cached collecting state is to be received Hiding, the data cached state that do not collected are expressed as False.The default deletion condition includes data cached collecting state, Data cached access state, data cached storage time, data cached index table status.

Step S20, it is described it is data cached meet the preset deletion condition when, it is data cached by what is met the preset deletion condition It deletes;

Step S30, it is described it is data cached be unsatisfactory for default deletion condition when, the caching of default deletion condition will be unsatisfactory for Data retain.

Judge to store in intelligent terminal it is data cached whether meet the preset deletion condition, from it is described it is data cached in find out What is met the preset deletion condition is data cached, and the data cached deletion that will be met the preset deletion condition.For example, will access but The data cached deletion that do not collect, or the data cached deletion etc. that will be issued before one week but do not collected.

Judge that data cached whether meet the preset deletion condition stored in intelligent terminal can be by data cached rope Draw detection of the table one by one to the data cached carry out preset condition of storage, therefrom determines the caching number met the preset deletion condition According to, and the data cached storage location met the preset deletion condition is found according to concordance list, and will meet the preset deletion condition Data cached deletion;The data cached of default deletion condition is unsatisfactory for continue to retain.

It is understood that the step of data cached deletion that will be met the preset deletion condition may include: in institute When stating data cached meet the preset deletion condition, data cached user is prompted in a manner of list for what is met the preset deletion condition Which is data cached to be deleted, and can prompt the user whether to confirm the caching for meeting the preset deletion condition these simultaneously Data are deleted, and after receiving the confirmation message of user, these are met the preset deletion condition data cached;It can also be with It is to give the data cached offer each met the preset deletion condition one Option Box, so that user is from meeting the preset deletion condition It is data cached in, selection need to delete it is data cached, and receive user determine delete data cached instruction when, from Meet the preset deletion condition it is data cached in, by the part being easily selected by a user delete.For example, with reference to Fig. 2 c, data cached Interface display one data cached list to be deleted is deleted, and provides select frame and part choice box entirely in the list, for User is expected according to oneself or needs to select to delete the data cached all deletions met the preset deletion condition or part.? When user clicks confirmation delete button, data cached deletion that user is chosen.

Further, it data cached be deleted in order to allow user which clearly understands and/or data cached be It is no successfully to be deleted, it, can be comprising steps of providing one after by the data cached deletion met the preset deletion condition Delete data cached list (including having deleted data cached ID, storage time, collecting state etc.), with prompt user which It is data cached successfully to be deleted.

The embodiment of the present invention will meet default delete by the judgement of the data cached carry out default deletion condition to storage Except the data cached deletion of condition, realization selectively, is reasonably cleared up data cached.Guaranteeing valid cache It while data store, and avoids the problem that storage is largely data cached and brings memory space inadequate, save memory space, in turn The performance of raising system.

Further, propose that the present invention clears up the second embodiment of data cached method.When the default deletion condition When for data cached collecting state, as shown in figure 3, being based on above-mentioned first embodiment:

Step S10 includes:

Step S101, whether judge to store in intelligent terminal data cached is collected;

Step S20 includes:

Step S201, it is described it is data cached do not collected when, delete it is described do not collected it is data cached;

Step S30 includes:

Step S301, it is described it is data cached collected when, retain it is described collected it is data cached.

Intelligent terminal storage it is data cached in, judge each data cached collecting state one by one, judge it is each delay Whether the collecting state of deposit data is to be collected, that is, judges whether user needs or expect the slow of access intelligent terminal storage again Deposit data.It is described it is data cached collected when, determine it is described collected it is data cached be unsatisfactory for default deletion condition, retain It is described collected it is data cached;It is described it is data cached do not collected when, by the data cached deletion that do not collected, or Person to it is described do not collected it is data cached further determine whether to meet other default deletion conditions, with determine whether will be described The data cached deletion that do not collected.By the way that data cached whether being collected of intelligent terminal storage judged, received described Hiding data cached reservation, realize selectively retain intelligent terminal in store it is data cached.Spatial cache is saved, in turn The performance of raising system.

Further, propose that the present invention clears up the 3rd embodiment of data cached method.With reference to Fig. 4, based on above-mentioned the One embodiment:

Step S20 includes:

Step S202, it is described it is data cached collected when, judge it is described collected it is data cached whether pre- first If being accessed in the time;

Step S203, collected it is data cached not visited in the first preset time when, delete and described be not interviewed That asks is data cached;

Step S30 includes:

Step S302, collected it is data cached in the first preset time be accessed when, retain it is described accessed It is data cached.

The first preset time is preset, first preset time is 10 days, 15 days constant durations.In the caching When data are collected, according to pre-set first preset time, judge it is described collected it is each data cached pre- first If the access state in the time, that is, whether be accessed, it is described collected data cached be not interviewed in the first preset time When asking, determine it is described it is not visited it is data cached meet the preset deletion condition, delete described not visited data cached.? It is described collected it is data cached in the first preset time be accessed when, by it is described collected it is data cached in, first The data cached reservation being accessed in preset time, or further judge whether the accessed data meet other and preset Deletion condition, to further determine whether the accessed data are retained.Data cached be accessed can wrap It includes and data cached browsed, data cached shared, data cached be forwarded, comment on etc. data cached.Pass through judgement Whether that is collected is data cached accessed in the first preset time, data cached in the first preset time what is collected When not visited, by not visited data cached deletion.Realize selectively by intelligent terminal storage it is data cached into Row is deleted.The spatial cache for saving mobile terminal, improves the performance of mobile terminal system.

Further, propose that the present invention clears up the fourth embodiment of data cached method.With reference to Fig. 5, based on above-mentioned the One embodiment:

Step S20 includes:

Step S204, it is described it is data cached collected when, judge it is described collected it is data cached when second is default Whether interior accessed number is more than preset threshold;

Step S205 is less than preset threshold in the data cached number being accessed in the second preset time collected When, it deletes the accessed number and is less than the data cached of preset threshold;

Step S30 includes:

Step S303 is more than preset threshold in the data cached number being accessed in the second preset time collected When, retaining the accessed number is more than the data cached of preset threshold.

The second preset time is preset, second preset time can be 30 days, 45 days constant durations.Default one Threshold value, the preset threshold can be 2 times, 3 inferior access times.It is described it is data cached collected when, according to pre-set Second preset time and preset threshold, judge the data cached access times within the second time collected whether be more than Preset threshold is less than or equal to preset threshold in the data cached number being accessed in the second preset time collected When, determine that the accessed number is less than or equal to the data cached of preset threshold and meets the preset deletion condition, it will be described interviewed Ask that number is less than or equal to the data cached deletion of preset threshold.It is described collected it is data cached in the second preset time When accessed number is greater than preset threshold, the accessed number is greater than to the data cached reservation of preset threshold, or is sentenced The accessed number that breaks is greater than whether the data cached of preset threshold meets other default deletion conditions, described interviewed with determination Ask number be greater than preset threshold it is data cached whether the reservation.By judge it is described collected data cached preset second Whether the number being accessed in the time is more than preset threshold;It is described collected it is data cached in the second preset time be interviewed When the number asked is less than preset threshold, the caching that the number being accessed in the second preset time is less than preset threshold is deleted Data.Realizing selectively, reasonably to delete stores data cached in intelligent terminal, the caching for saving mobile terminal is empty Between, improve the performance of mobile terminal system.

Further, propose that the present invention clears up the 5th embodiment of data cached method.When the default deletion condition When for data cached storage time, as shown in fig. 6, being based on above-mentioned first embodiment:

Step S10 includes:

Step S102, judges whether storage time data cached in intelligent terminal is greater than third preset time;

Step S20 includes:

Step S206 deletes the storage time when the data cached storage time is greater than third preset time It is data cached greater than third preset time;

The step S30 includes:

Step S304 is deposited described in reservation when the data cached storage time is less than or equal to third preset time It is data cached less than or equal to third preset time to store up the time.

Each data cached storage time in real-time update intelligent terminal, that is, according to data cached issuing time and Current time calculates data cached storage time, and is updated to data cached storage time.Preset third Preset time, the third preset time are a week, two weeks constant duration.Data cached part is clicked in user to delete When except instruction, according to pre-set third preset time, when judging the data cached storage stored in intelligent terminal one by one Between whether be greater than third preset time, when the data cached storage time is greater than third preset time, determine described slow Deposit data is met the preset deletion condition, and storage time is greater than to the data cached deletion of third preset time;It is data cached having Storage time be less than or equal to third preset time when, determine storage time be less than or equal to third preset time caching number According to being unsatisfactory for default deletion condition, storage time is less than or equal to the data cached reservation of third preset time, or into one Step judges that storage time is less than or equal to whether the data cached of third preset time meets other default deletion conditions, with determination Storage time is less than or equal to whether the data cached of third preset time needs to be retained.When carrying out data cached deletion, When data cached storage time is greater than third preset time in an intelligent terminal, storage time is greater than third preset time Data cached deletion.And then realize and selectively delete the data cached of intelligent terminal storage, spatial cache is saved, system is improved The performance of system.

It is understood that when data cached storage time is greater than third preset time in an intelligent terminal, Ke Yijin One step passes through the data cached collecting state for judge that storage time is greater than third preset time, to determine storage time greater than the Whether the data cached of three preset times needs to retain.It is greater than the data cached of third preset time in storage time to be collected When, data cached continue to retain by what is collected;Storage time be greater than the first preset time it is data cached do not collected when, The data cached deletion that will be collected.It realizes and selectively retains the data cached of intelligent terminal storage, for user's next time Without to identical data cached downloading, improving user experience again when access.

Further, after step s 102, this method further comprises the steps of:

Step S103 judges described slow when the data cached storage time is less than or equal to third preset time Whether deposit data is accessed;

Step S207, storage time be less than or equal to third preset time it is data cached accessed when, described in deletion Accessed is data cached;

Step S305, storage time be less than or equal to third preset time it is data cached not visited when, retain institute It states accessed data cached.

When data cached storage time in an intelligent terminal is less than or equal to third preset time, the caching is judged Whether data are accessed in third preset time.When described data cached accessed in third preset time, institute is determined State it is accessed it is data cached meet the preset deletion condition, delete accessed data cached;Described data cached in third When preset time is not visited, determine in third preset time it is not visited it is data cached be unsatisfactory for default deletion condition, Retain described not visited data cached.It is pre- to be less than or equal to third by storage time data cached in an intelligent terminal If when the time, further judge whether storage time is accessed less than or equal to the data cached of third preset time, and will be by The data cached deletion of access.Guarantee by data cached reservation expected from user while, more efficiently by it is some need not The data cached deletion wanted saves spatial cache, improves the performance of system.

It is understood that storage time is less than or equal to the data cached interviewed of third preset time in an intelligent terminal When asking, can further judge it is described it is accessed it is data cached whether collected, it is described accessed data cached to determine Whether need to delete, it is described it is accessed it is data cached do not collected when, by the data cached deletion that do not collected;? It is described accessed data cached when being collected, by it is described collected data cached continue to retain.It is also possible in intelligence When terminal storage data cached is not collected, further judge whether the data cached storage time is default greater than third Time retains valid cache data.Detailed process is as described above, no longer burdensome.It realizes and is saving memory space, improve system Unite performance while, further selectively, reasonably retain it is data cached so that when user access next time be not necessarily to it is right again Same buffered data are downloaded, and improve user experience.

Further, propose that the present invention clears up the sixth embodiment of data cached method.When the default deletion condition When for data cached index table status, as shown in fig. 7, being based on above-mentioned first embodiment:

Step S10 includes:

Step S104, according to data cached title, judge whether to store in the intelligent terminal with it is described data cached Corresponding concordance list;

Step S20 includes:

Step S208, in the intelligent terminal it is not stored with the data cached corresponding concordance list when, described in deletion Not stored concordance list it is data cached;

The step S30 includes:

Step S306 when storage is with the data cached corresponding concordance list in the intelligent terminal, is deposited described in reservation Store up the data cached of concordance list.

Concordance list data cached in intelligent terminal is prestored, includes data cached title, caching in each concordance list The storage location of data.For example, concordance list are as follows: data cached ID+F (data cached URL).Wherein, data cached ID is caching The ID of data, data cached URL (uniform resource locator) are data cached storage location, and F function is a kind of obtaining value method, For the HashCode (cryptographic Hash) for taking data cached URL.That is, being one different title of each data cached setting, to incite somebody to action It is each it is data cached distinguish, while the data cached title have one mapping concordance list.When user is by clicking caching The part delete button of data, when triggering data cached deletion instruction, whether judgement stores in an intelligent terminal is delayed with described The corresponding concordance list of deposit data, i.e., according to data cached title, traversal caching number finds correspondence according to the title got Whether data cached ID can find out concordance list corresponding with the ID got according to the ID got in intelligent terminal.Institute When stating that intelligent terminal is not stored to have with the data cached corresponding concordance list, determining not stored has the data cached full of concordance list Sufficient default deletion condition deletes the data cached of the not stored concordance list;It is stored with and the caching in the intelligent terminal When the corresponding concordance list of data, determine that being stored with the data cached of concordance list is unsatisfactory for default deletion condition, is stored with described The data cached of concordance list continues to retain, or is stored with whether the data cached of concordance list meets other default items described in judgement Part, to determine the need for being stored with the data cached of concordance list by described and continuing to retain.Judge whether store in intelligent terminal Data cached corresponding concordance list deletes the slow of the not stored concordance list in not stored data cached corresponding concordance list Deposit data.Data cached, saving spatial cache selectively, is reasonably deleted in realization, and then improves the performance of system.

It is understood that in an intelligent terminal the concordance list of memory buffers data when, can be further by judging institute It states and is stored with whether the data cached of concordance list is greater than third preset time, and/or be stored with the caching of concordance list described in judgement Whether data are collected, and/or are stored with whether the data cached of concordance list is accessed described in judgement, and/or are deposited described in judgement Whether the data cached storage time for containing concordance list is greater than first preset time etc., and Lai Gengjia selectively will be in satisfaction State the data cached deletion of default deletion condition.Be also possible to intelligent terminal store it is data cached do not collected when, into one Step judge whether to store in the intelligent terminal with the data cached corresponding concordance list, valid cache data are retained. Detailed process such as above-described embodiment, details are not described herein.While data cached preservation that is user is expected or needing, delete Except some unnecessary data cached, to save memory space, and then the performance of system is improved.

In other embodiments of the present invention, realize that the process of data cached cleaning is also possible to: data cached when receiving When deleting instruction, traverse it is data cached, according to data cached title, get stored in the intelligent terminal with it is described slow The corresponding concordance list of deposit data title;Found out according to the concordance list got it is described data cached, judge described data cached be It is no to be collected;It is described it is data cached collected when, retain it is described data cached;It is described it is data cached do not collected when, sentence Break it is described it is data cached whether be one week before issue it is data cached;It is described it is data cached be one week before issue it is data cached When, it deletes described data cached;It is described it is data cached for before one week publication it is data cached when, judge described data cached Whether it is accessed;When described data cached accessed, delete described data cached;When described data cached not visited, Retain described data cached.

Above-mentioned first to the executing subject of the data cached method of cleaning of sixth embodiment all can be mobile terminal (example Such as, smart phone, tablet computer etc.).

Further, it proposes that the present invention is a kind of and clears up data cached device.Referring to Fig. 8, the data cached dress of the cleaning It sets and includes:

Judgment module 10, for judging the caching number stored in intelligent terminal when receiving data cached deletion instruction Whether according to meeting the preset deletion condition, the default deletion condition includes data cached collecting state, data cached access State, data cached storage time, data cached index table status;

User using intelligent terminal and other users when being carried out information exchange or being obtained information from network, it will It generates some data cached in intelligent terminal, while can also be stored with data cached concordance list, the concordance list in intelligent terminal It may include the information such as data cached issuing time, data cached title, data cached storage location.As interaction is believed Breath and/or the information content obtained increase, and will also generate in intelligent terminal a large amount of data cached, need timing to intelligent terminal The data cached of middle storage is cleared up.The data cached triggering for deleting instruction can be user by clicking on intelligent terminal Deletion option in data cached delete button or the data cached menu of click, to trigger data cached deletion instruction;It can also To be intelligent terminal after certain interval of time (1 day, one week), the data cached deletion of automatic trigger.It is described data cached to delete Except instruction includes that whole deletion instructions and part deletion instruct.When the data cached carry out that user needs to store intelligent terminal is clear When reason, clicks the part that part is deleted data cached button or clicked in data cached menu and delete option, into caching Data delete interface, judgment module 10 judge to store in intelligent terminal it is data cached whether meet the preset deletion condition, i.e., time Go through stored in intelligent terminal it is data cached, therefrom find out meet the preset deletion condition it is data cached.For example, such as Fig. 2 a institute Show when the user clicks when the delete button of part, data cached deletion interface as shown in Figure 2 b, the data cached deletion will occur Interface includes returning, pause, continuing, stop button, so that user carries out control operation, Yong Huke to data cached deletion process To control data cached deletion process by click pause, continuation, stop button, it can also pass through and click return push-button return To main interface.The data cached interface of deleting also can also include the data cached information table stored, the data cached letter Breath table includes data cached ID, data cached storage time, data cached access state, data cached collecting state Etc. information, so that user knows the progress of data cached deletion, wherein the ture for accessing column indicates data cached access state To be accessed, data cached not visited state is expressed as False, and the ture of gallery indicates data cached collection shape State is to be collected, and the data cached state that do not collected is expressed as False.The default deletion condition includes data cached Collecting state, data cached access state, data cached storage time, data cached index table status.

Buffer process module 20, for it is described it is data cached meet the preset deletion condition when, will meet and default delete item The data cached deletion of part;

It is described it is data cached be unsatisfactory for default deletion condition when, the data cached guarantor of default deletion condition will be unsatisfactory for It stays.

Judgment module 10 judge to store in intelligent terminal it is data cached whether meet the preset deletion condition, from the caching It is found out in data and meets the preset deletion condition data cached, and will met the preset deletion condition by buffer process module 20 Data cached deletion.For example, the data cached deletion that will have been accessed but do not collected, or will issue before one week but do not collected Data cached deletion etc..

Judgment module 10 judges that data cached whether meet the preset deletion condition stored in intelligent terminal can be by slow The detection to the data cached carry out preset condition of storage one by one of the concordance list of deposit data, therefrom determination is met the preset deletion condition It is data cached, and the data cached storage met the preset deletion condition is found according to concordance list by buffer process module 20 Position, and the data cached deletion that will be met the preset deletion condition;The data cached of default deletion condition is unsatisfactory for continue to retain.

It is understood that the buffer process module 20 is also used to: data cached being met the preset deletion condition described When, by meet the preset deletion condition it is data cached prompted in a manner of list user which it is data cached will be deleted, and It can prompt the user whether to confirm the data cached deletion for meeting the preset deletion condition these simultaneously, receive user really After recognizing information, these are met the preset deletion condition data cached;Also it is also possible that buffer process module 20 gives each satisfaction One Option Box of data cached offer of default deletion condition, for user from meet the preset deletion condition it is data cached in, Selection need to delete it is data cached, and receive user determine delete data cached instruction when, from meeting default delete Condition it is data cached in, by the part being easily selected by a user delete.For example, with reference to Fig. 2 c, in data cached deletion interface display One data cached list to be deleted, and provide select frame and part choice box entirely in the list, so that user is according to oneself It is expected that or needing to select to delete the data cached all deletions met the preset deletion condition or part.It clicks and confirms in user When delete button, data cached deletion that user is chosen.

Further, it data cached be deleted in order to allow user which clearly understands and/or data cached be No successfully to be deleted, after by the data cached deletion met the preset deletion condition, the buffer process module 20 is also used to: It provides one and has deleted data cached list (including having deleted data cached ID, storage time, collecting state etc.), to mention Showing user, which data cached is successfully deleted.

The embodiment of the present invention will meet default delete by the judgement of the data cached carry out default deletion condition to storage Except the data cached deletion of condition, realization selectively, is reasonably cleared up data cached.Guaranteeing valid cache It while data store, and avoids the problem that storage is largely data cached and brings memory space inadequate, save memory space, in turn The performance of raising system.

Further, when the default deletion condition is data cached collecting state,

The judgment module 10 is also used to: whether judge to store in intelligent terminal data cached is collected;

The buffer process module 20 is also used to: it is described it is data cached do not collected when, delete and described not collected It is data cached;

It is described it is data cached collected when, retain it is described collected it is data cached.

Intelligent terminal storage it is data cached in, judgment module 10 judges each data cached collecting state one by one, Judge whether each data cached collecting state is to be collected, that is, judges whether user needs or expect that access intelligence is eventually again End stores data cached.It is described it is data cached collected when, judgment module 10 determine it is described collected it is data cached not Meet the preset deletion condition, buffer process module 20 retain it is described collected it is data cached;It data cached is not received described When hiding, buffer process module 20 by the data cached deletion that do not collected, or to it is described do not collected it is data cached It further determines whether to meet other default deletion conditions, to determine whether the data cached deletion that do not collected.It is logical Data cached whether being collected for judging intelligent terminal storage is crossed, by the data cached reservation collected, realization has choosing It is stored in the reservation intelligent terminal of selecting property data cached.Spatial cache is saved, and then improves the performance of system.

Further, the judgment module 10 is also used to: whether judge to store in intelligent terminal data cached is collected;

It is described it is data cached collected when, judge it is described collected it is data cached whether in the first preset time quilt Access;

The buffer process module 20 is also used to: collected it is data cached in the first preset time it is not visited When, it deletes described not visited data cached;

Collected it is data cached be accessed in the first preset time when, retain described accessed data cached.

The first preset time is preset, first preset time is 10 days, 15 days constant durations.In the caching When data are collected, according to pre-set first preset time, judgment module 10 judges each caching number collected According to the access state in the first preset time, that is, whether be accessed, it is described collected it is data cached when first is default When interior not visited, determine it is described it is not visited it is data cached meet the preset deletion condition, buffer process module 20 is deleted It is described not visited data cached.It is described collected it is data cached be accessed in the first preset time when, will be described Collected it is data cached in, the data cached reservation being accessed in the first preset time or further judges the quilt Whether the data of access meet other default deletion conditions, to further determine whether the accessed data are protected It stays.It is described it is data cached it is accessed may include data cached being browsed, data cached being shared, data cached be forwarded, be right It is data cached to comment on etc..By judge to be collected it is data cached whether be accessed in the first preset time, received Hiding it is data cached not visited in the first preset time when, by not visited data cached deletion.It realizes selective Data cached deleting intelligent terminal storage.The spatial cache for saving mobile terminal, improves mobile terminal system Performance.

Further, the judgment module 10 is also used to: whether judge to store in intelligent terminal data cached is collected;

It is described it is data cached collected when, judge it is described collected it is data cached in the second preset time be accessed Number whether be more than preset threshold;

The buffer process module 20 is also used to: in data cached time being accessed in the second preset time collected When number is less than preset threshold, deletes the accessed number and be less than the data cached of preset threshold;

When the data cached number being accessed in the second preset time collected is more than preset threshold, described in reservation Accessed number is more than the data cached of preset threshold.

The second preset time is preset, second preset time can be 30 days, 45 days constant durations.Default one Threshold value, the preset threshold can be 2 times, 3 inferior access times.It is described it is data cached collected when, according to pre-set Second preset time and preset threshold, judgment module 10 judge the data cached access within the second time collected time Whether number is more than preset threshold, is less than or waits in the data cached number being accessed in the second preset time collected When preset threshold, determine that the accessed number is less than or equal to the data cached of preset threshold and meets the preset deletion condition, The accessed number is less than or equal to the data cached deletion of preset threshold by buffer process module 20.It is collected described When the data cached number being accessed in the second preset time is greater than preset threshold, the accessed number is greater than default valve Value data cached reservation, or judge the accessed number be greater than preset threshold it is data cached whether meet other preset Deletion condition, with the determination accessed number be greater than preset threshold it is data cached whether the reservation.By judging the quilt Whether the data cached number being accessed in the second preset time of collection is more than preset threshold;In the caching collected When the number that data are accessed in the second preset time is less than preset threshold, what deletion was accessed in the second preset time Number is less than the data cached of preset threshold.Realize selectively, reasonably delete the caching number that stores in intelligent terminal According to saving the spatial cache of mobile terminal, improve the performance of mobile terminal system.

Further, when the default deletion condition is data cached storage time, the judgment module 10 is also used In: judge whether storage time data cached in intelligent terminal is greater than third preset time;

The buffer process module 20 is also used to: when the data cached storage time is greater than third preset time, It is data cached greater than third preset time to delete the storage time;

When the data cached storage time is less than or equal to third preset time, retains the storage time and be less than Or it is data cached equal to third preset time.

Each data cached storage time in real-time update intelligent terminal, that is, according to data cached issuing time and Current time calculates data cached storage time, and is updated to data cached storage time.Preset third Preset time, the third preset time are a week, two weeks constant duration.Data cached part is clicked in user to delete When except instruction, judgment module 10 judges the caching number stored in intelligent terminal according to pre-set third preset time one by one According to storage time whether be greater than third preset time, the data cached storage time be greater than third preset time when, Determine it is described it is data cached meet the preset deletion condition, storage time is greater than the slow of third preset time by buffer process module 20 Deposit data is deleted;Have data cached storage time be less than or equal to third preset time when, determine storage time be less than or Data cached equal to third preset time is unsatisfactory for default deletion condition, and storage time is less than or is waited by buffer process module 20 In the data cached reservation of third preset time, or further judge that storage time is less than or equal to the slow of third preset time Whether deposit data meets other default deletion conditions, to determine that storage time is less than or equal to the data cached of third preset time Whether need to be retained.When carrying out data cached deletion, it is pre- to be greater than third for data cached storage time in an intelligent terminal If when the time, storage time to be greater than to the data cached deletion of third preset time.And then it realizes and selectively deletes intelligence Terminal storage it is data cached, save spatial cache, improve the performance of system.

It is understood that when data cached storage time is greater than third preset time in an intelligent terminal, Ke Yijin One step judges that storage time is greater than the data cached collecting state of third preset time by judgment module 10, to determine to store Time is greater than whether the data cached of third preset time needs to retain.It is greater than the caching number of third preset time in storage time When according to being collected, buffer process module 20 data cached continues to retain by what is collected;When storage time is default greater than first Between the data cached data cached deletion that when not collected, buffer process module 20 will be collected.It realizes and selectively protects Intelligent terminal is stayed to store data cached, without to identical data cached downloading, improving again when accessing next time for user User experience.

Further, the judgment module 10 is also used to: being less than or equal to third in the data cached storage time When preset time, described data cached whether be accessed judged;

The buffer process module 20 is also used to: being less than or equal to the data cached quilt of third preset time in storage time When access, delete described accessed data cached;

Storage time be less than or equal to third preset time it is data cached not visited when, retain it is described accessed It is data cached.

When data cached storage time in an intelligent terminal is less than or equal to third preset time, judgment module 10 is sentenced Break described data cached whether be accessed in third preset time.It is described it is data cached in third preset time be accessed When, determine it is described it is accessed it is data cached meet the preset deletion condition, buffer process module 20 deletes accessed caching number According to;In described data cached when third preset time is not visited, judgement caching not visited in third preset time Data are unsatisfactory for default deletion condition, and buffer process module 20 retains described not visited data cached.By at intelligent end When data cached storage time is less than or equal to third preset time in end, further judge storage time less than or equal to the Whether the data cached of three preset times is accessed, and the data cached deletion that will be accessed.Guaranteeing to delay expected from user While deposit data retains, more efficiently by some unnecessary data cached deletions, spatial cache is saved, system is improved Performance.

It is understood that storage time is less than or equal to the data cached interviewed of third preset time in an intelligent terminal When asking, can further by judgment module 10 judge it is described it is accessed it is data cached whether collected, to determine the quilt Whether the data cached of access needs to delete, it is described it is accessed it is data cached do not collected when, buffer process module 20 will The data cached deletion that do not collected;It is described it is accessed it is data cached collected when, by the caching collected Data continue to retain.Be also possible to intelligent terminal store it is data cached do not collected when, judgment module 10 is just further sentenced Whether the data cached storage time of breaking is greater than third preset time, and valid cache data are retained.Detailed process is such as It is upper described, it is no longer burdensome.It realizes and is saving memory space, while improving system performance, further selectively, reasonably Retain it is data cached so that improving user experience without being downloaded again to same buffered data when user accesses next time.

Further, when the default deletion condition is data cached index table status, the judgment module 10 is also For: according to data cached title, judge whether store in the intelligent terminal and the data cached corresponding concordance list;

The buffer process module 20 is also used to: not stored with the data cached corresponding rope in the intelligent terminal When drawing table, the data cached of the not stored concordance list is deleted;

When storage is with the data cached corresponding concordance list in the intelligent terminal, retain the storage concordance list It is data cached.

Concordance list data cached in intelligent terminal is prestored, includes data cached title, caching in each concordance list The storage location of data.For example, concordance list are as follows: data cached ID+F (data cached URL).Wherein, data cached ID is caching The ID of data, data cached URL are data cached storage location, and F function is a kind of obtaining value method, to take data cached URL HashCode (cryptographic Hash).That is, being one different title of each data cached setting, to by each data cached differentiation It opens, while the data cached title has the concordance list of a mapping.When user is pressed by clicking data cached part deletion Button, when triggering data cached deletion instruction, the judgement of judgment module 10 whether store in an intelligent terminal with it is described data cached Corresponding concordance list, i.e., according to data cached title, traversal caching number finds corresponding caching number according to the title got According to ID whether concordance list corresponding with the ID got can be found out according to the ID got in intelligent terminal.In the intelligence Terminal is not stored when having with the data cached corresponding concordance list, determines that the not stored data cached satisfaction for having concordance list is default Deletion condition, buffer process module 20 delete the data cached of the not stored concordance list;The intelligent terminal be stored with When the data cached corresponding concordance list, determine that being stored with the data cached of concordance list is unsatisfactory for default deletion condition, by institute It states and is stored with the data cached of concordance list and continues to retain, or be stored with whether the data cached of concordance list meets it described in judgement His preset condition, to determine the need for being stored with the data cached of concordance list by described and continuing to retain.Judge in intelligent terminal Whether the corresponding concordance list of memory buffers data deletes the not stored rope in not stored data cached corresponding concordance list Draw the data cached of table.Data cached, saving spatial cache selectively, is reasonably deleted in realization, and then improves system Performance.

It is understood that the concordance list of memory buffers data constantly, can further pass through judgement in an intelligent terminal Module 10 is stored with whether the data cached of concordance list is greater than third preset time described in judging, and/or is stored with described in judgement Whether the data cached of concordance list is collected, and/or is stored with whether the data cached of concordance list is accessed described in judgement, and/ Or be stored with the data cached storage time of concordance list described in judgement and whether be greater than first preset time etc., come more added with selection Property it will meet the data cached deletion of above-mentioned default deletion condition.Be also possible to intelligent terminal store it is data cached not by When collection, further judge whether to store in the intelligent terminal with the data cached corresponding concordance list, will effectively delay Deposit data retains.Detailed process such as above-described embodiment, details are not described herein.In data cached guarantor that is user is expected or needing While depositing, deletion is some unnecessary data cached, to save memory space, and then improves the performance of system.

In other embodiments of the present invention, realize that the process of data cached cleaning is also possible to: buffer process module 20 is worked as When receiving data cached deletion instruction, traversal is data cached, according to data cached title, gets in the intelligent terminal The concordance list corresponding with the data cached title of storage;Described data cached, judgement is found out according to the concordance list got Module 10 judges described data cached whether collected;It is described it is data cached collected when, buffer process module 20 retain institute It states data cached;It is described it is data cached do not collected when, judgment module 10 judge it is described it is data cached whether be a Zhou Qianfa Cloth it is data cached;It is described it is data cached be one week before issue it is data cached when, buffer process module 20 deletes the caching Data;It is described it is data cached for before one week publication it is data cached when, judgment module 10 judge it is described it is data cached whether It is accessed;When described data cached accessed, buffer process module 20 is deleted described data cached;It is described it is data cached not When accessed, buffer process module 20 retains described data cached.

As shown in figure 9, Fig. 9 is total line chart of terminal where clearing up data cached device in the embodiment of the present invention.The end End may include: at least one processor 301, such as CPU, at least one network interface 304, user interface 303, memory 305, at least one communication bus 302.Wherein, communication bus 302 is for realizing the connection communication between these components.Wherein, User interface 303 may include display screen (Display), keyboard (Keyboard), can also include wireline interface, the nothing of standard Line interface.Network interface 304 may include standard wireline interface and wireless interface (such as WIFI interface).Memory 305 can be High speed RAM memory is also possible to non-labile memory (non-volatilememory), and for example, at least a disk is deposited Reservoir.Memory 305 can also be that at least one is located remotely from the storage device of aforementioned processor 301.As a kind of computer It may include operating system, network communication module, Subscriber Interface Module SIM and cleaning caching number in the memory 305 of storage medium According to program.

In the terminal, network interface 304 is mainly used for connection service to the data cached device institute of cleaning shown in Fig. 9 Device carries out data communication with server;And user interface 303 is mainly used for receiving user instructions, and interacts with user;And The program that processor 301 can be used for calling the cleaning stored in memory 305 data cached, and execute following operation:

The data cached deletion instruction that user issues is received by user interface 303, receives use in user interface 303 When family is by clicking the network interface for deleting order button or sending, judge to store in intelligent terminal data cached whether full Sufficient default deletion condition, the default deletion condition include data cached collecting state, data cached access state, caching The storage time of data, data cached index table status;It is described it is data cached meet the preset deletion condition when, will meet pre- If the data cached deletion of the condition of deletion;It is described it is data cached be unsatisfactory for default deletion condition when, default deletion will be unsatisfactory for The data cached reservation of condition.

In one embodiment, when the default deletion condition is data cached collecting state, processor 301 is called Following operation can also be performed in the data cached program of the cleaning stored in memory 305:

Whether judge to store in intelligent terminal data cached is collected;It is described it is data cached do not collected when, delete It is described do not collected it is data cached;It is described it is data cached collected when, retain it is described collected it is data cached.

In one embodiment, when the default deletion condition is data cached collecting state, processor 301 is called Following operation can also be performed in the data cached program of the cleaning stored in memory 305:

Whether judge to store in intelligent terminal data cached is collected;It is described it is data cached collected when, judge institute State collected it is data cached whether in the first preset time be accessed;It is data cached in the first preset time what is collected When interior not visited, delete described not visited data cached;In the data cached quilt in the first preset time collected When access, retain described accessed data cached.

In one embodiment, when the default deletion condition is data cached collecting state, processor 301 is called Following operation can also be performed in the data cached program of the cleaning stored in memory 305:

Whether judge to store in intelligent terminal data cached is collected;It is described it is data cached collected when, judge institute State whether the data cached number being accessed in the second preset time collected is more than preset threshold;In the caching collected When the number that data are accessed in the second preset time is less than preset threshold, the deletion accessed number is less than default Threshold value it is data cached;When the data cached number being accessed in the second preset time collected is more than preset threshold, It is data cached more than preset threshold to retain the accessed number.

In one embodiment, when the default deletion condition is data cached storage time, processor 301 is called Following operation can also be performed in the data cached program of the cleaning stored in memory 305:

Judge whether storage time data cached in intelligent terminal is greater than third preset time;Described data cached When storage time is greater than third preset time, it is data cached greater than third preset time to delete the storage time;Described When data cached storage time is less than or equal to third preset time, it is default less than or equal to third to retain the storage time Time it is data cached.

In one embodiment, processor 301 calls the data cached program of cleaning that stores in memory 305 can be with Execute following operation:

The data cached storage time be less than or equal to third preset time when, judge it is described it is data cached whether It is accessed;When described data cached accessed, delete described accessed data cached;It is less than or equal to the in storage time Three preset times it is data cached not visited when, retain described accessed data cached.

In one embodiment, when the index table status of the uncached data of the default deletion condition, processor 301 is adjusted Following operation can also be performed with the data cached program of the cleaning stored in memory 305:

According to data cached title, judge whether store in the intelligent terminal and the data cached corresponding index Table;In the intelligent terminal it is not stored with the data cached corresponding concordance list when, delete the not stored concordance list It is data cached;When storage is with the data cached corresponding concordance list in the intelligent terminal, retain the storage concordance list It is data cached.

In one embodiment, when the index table status of the uncached data of the default deletion condition, processor 301 is adjusted Following operation can also be performed with the data cached program of the cleaning stored in memory 305:

When receiving data cached deletion instruction, traversal is data cached, according to data cached title, gets described The concordance list corresponding with the data cached title stored in intelligent terminal;The caching is found out according to the concordance list got Data judge described data cached whether collected;It is described it is data cached collected when, retain it is described data cached;Institute State it is data cached when not collected, judge it is described it is data cached whether be one week before issue it is data cached;It is described data cached Be before one week issue it is data cached when, delete it is described data cached;It is described it is data cached be not the caching of publication before one week When data, described data cached whether be accessed judged;When described data cached accessed, delete described data cached;? When described data cached not visited, retain described data cached.

Terminal where the data cached device of the described cleaning of the present embodiment Fig. 9, judge storage it is data cached whether The data cached deletion that meets the preset deletion condition, and will meet the preset deletion condition.Selectively, reasonably by storage Unnecessary data cached deletion saves memory space, improves the property of system while guaranteeing that valid cache data save Energy.

It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.

The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device or the network equipment etc.) execute method described in each embodiment of the present invention.

The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (12)

1. a kind of clear up data cached method, which is characterized in that the method comprising the steps of:
When receiving data cached deletion instruction, judge to store in terminal it is data cached whether meet the preset deletion condition, The default deletion condition includes data cached collection and access state, data cached storage time and data cached rope Draw table status;The data cached index table status be included in the terminal whether be stored with it is described data cached corresponding Concordance list, the concordance list includes data cached issuing time, data cached title and data cached storage location;
It is described it is data cached meet the preset deletion condition when, the data cached deletion that will meet the preset deletion condition;
It is described it is data cached be unsatisfactory for default deletion condition when, the data cached reservation of default deletion condition will be unsatisfactory for.
2. clearing up data cached method as described in claim 1, which is characterized in that when the default deletion condition is caching When the collection and access state of data, it is described it is data cached meet the preset deletion condition when, by what is met the preset deletion condition Data cached deletion, it is described it is data cached be unsatisfactory for default deletion condition when, the caching number of default deletion condition will be unsatisfactory for Include: according to the step of retaining
It is described it is data cached collected when, judge it is described collected it is data cached whether in the first preset time be interviewed It asks;
Collected it is data cached not visited in the first preset time when, delete described not visited data cached;
Collected it is data cached be accessed in the first preset time when, retain described accessed data cached.
3. clearing up data cached method as described in claim 1, which is characterized in that when the default deletion condition is caching When the collection and access state of data, it is described it is data cached meet the preset deletion condition when, by what is met the preset deletion condition Data cached deletion, it is described it is data cached be unsatisfactory for default deletion condition when, the caching number of default deletion condition will be unsatisfactory for Include: according to the step of retaining
It is described it is data cached collected when, judge it is described collected it is data cached in the second preset time be accessed time Whether number is more than preset threshold;
When the data cached number being accessed in the second preset time collected is less than preset threshold, the quilt is deleted Access times are less than the data cached of preset threshold;
When the data cached number being accessed in the second preset time collected is more than preset threshold, retain described interviewed Ask that number is more than the data cached of preset threshold.
4. clearing up data cached method as described in claim 1, which is characterized in that when the default deletion condition is caching When the storage time of data, it is described judge to store in terminal it is data cached whether meet the preset deletion condition, in the caching When data are met the preset deletion condition, the data cached deletion that will be met the preset deletion condition data cached is unsatisfactory for described When default deletion condition, the step of data cached reservation that will be unsatisfactory for default deletion condition, includes:
Judge whether storage time data cached in terminal is greater than third preset time;
When the data cached storage time is greater than third preset time, when deleting the storage time and being preset greater than third Between it is data cached;
When the data cached storage time is less than or equal to third preset time, retains the storage time and be less than or wait In the data cached of third preset time.
5. clearing up data cached method as claimed in claim 4, which is characterized in that data cached in the judgement terminal Whether storage time was greater than after the step of third preset time, and this method further comprises the steps of:
When the data cached storage time is less than or equal to third preset time, described data cached whether be interviewed judged It asks;
When described data cached accessed, delete described accessed data cached;
When described data cached not visited, retain described not visited data cached.
6. clearing up data cached method as described in claim 1, which is characterized in that when the default deletion condition is caching When the index table status of data, it is described judge to store in terminal it is data cached whether meet the preset deletion condition, described slow When deposit data is met the preset deletion condition, the data cached deletion that will be met the preset deletion condition, described data cached discontented When sufficient default deletion condition, the step of data cached reservation that will be unsatisfactory for default deletion condition, includes:
According to data cached title, judge whether store in the terminal and the data cached corresponding concordance list;
In the terminal it is not stored with the data cached corresponding concordance list when, delete the caching of the not stored concordance list Data;
When storage is with the data cached corresponding concordance list in the terminal, retain the caching number of the storage concordance list According to.
7. a kind of clear up data cached device, which is characterized in that the device includes:
Whether judgment module data cached meets for when receiving data cached deletion instruction, judge to store in terminal Default deletion condition, the default deletion condition include data cached collection and access state, data cached storage time With data cached index table status;The data cached index table status is included in the terminal whether be stored with and institute Data cached corresponding concordance list is stated, the concordance list includes data cached issuing time, data cached title and caching The storage location of data;
Buffer process module, for it is described it is data cached meet the preset deletion condition when, it is slow by what is met the preset deletion condition Deposit data is deleted;
It is described it is data cached be unsatisfactory for default deletion condition when, the data cached reservation of default deletion condition will be unsatisfactory for.
8. clearing up data cached device as claimed in claim 7, which is characterized in that when the default deletion condition is caching When the collection and access state of data,
The judgment module, be also used to it is described it is data cached collected when, judge to be collected data cached whether first It is accessed in preset time;
The buffer process module, be also used to collected it is data cached not visited in the first preset time when, delete It is described not visited data cached;
Collected it is data cached be accessed in the first preset time when, retain described accessed data cached.
9. clearing up data cached device as claimed in claim 7, which is characterized in that when the default deletion condition is caching When the collection and access state of data,
The judgment module, be also used to it is described it is data cached collected when, judge it is described collected it is data cached second Whether the number being accessed in preset time is more than preset threshold;
The buffer process module is also used to not surpass in the data cached number being accessed in the second preset time collected When crossing preset threshold, deletes the accessed number and be less than the data cached of preset threshold;
When the data cached number being accessed in the second preset time collected is more than preset threshold, retain described interviewed Ask that number is more than the data cached of preset threshold.
10. clearing up data cached device as claimed in claim 7, which is characterized in that when the default deletion condition is slow When the storage time of deposit data,
The judgment module, is also used to judge whether storage time data cached in terminal is greater than third preset time;
The buffer process module is also used to delete institute when the data cached storage time is greater than third preset time It is data cached greater than third preset time to state storage time;
When the data cached storage time is less than or equal to third preset time, retains the storage time and be less than or wait In the data cached of third preset time.
11. clearing up data cached device as claimed in claim 10, which is characterized in that
The judgment module is also used to the judgement when the data cached storage time is less than or equal to third preset time It is described data cached whether to be accessed;
The buffer process module is also used to when described data cached accessed, is deleted described accessed data cached;
When described data cached not visited, retain described not visited data cached.
12. clearing up data cached device as claimed in claim 7, which is characterized in that when the default deletion condition is slow When the index table status of deposit data,
The judgment module is also used to judge whether store in the terminal and the caching number according to data cached title According to corresponding concordance list;
The buffer process module, be also used in the terminal it is not stored with the data cached corresponding concordance list when, delete It is data cached except the not stored concordance list;
When storage is with the data cached corresponding concordance list in the terminal, retain the caching number of the storage concordance list According to.
CN201410185370.7A 2014-05-04 2014-05-04 Clear up data cached method and device CN105095107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410185370.7A CN105095107B (en) 2014-05-04 2014-05-04 Clear up data cached method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410185370.7A CN105095107B (en) 2014-05-04 2014-05-04 Clear up data cached method and device

Publications (2)

Publication Number Publication Date
CN105095107A CN105095107A (en) 2015-11-25
CN105095107B true CN105095107B (en) 2019-07-16

Family

ID=54575597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410185370.7A CN105095107B (en) 2014-05-04 2014-05-04 Clear up data cached method and device

Country Status (1)

Country Link
CN (1) CN105095107B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589926A (en) * 2015-11-27 2016-05-18 深圳市美贝壳科技有限公司 Method for clearing cache files of mobile terminal in real time
CN105718272B (en) * 2016-02-22 2019-08-27 青岛海信移动通信技术股份有限公司 A kind of method and terminal of terminal factory reset
CN105824902A (en) * 2016-03-14 2016-08-03 乐视网信息技术(北京)股份有限公司 Data caching method and device
WO2017161577A1 (en) * 2016-03-25 2017-09-28 马岩 Data removal method and system
CN106021129B (en) * 2016-04-29 2018-11-16 努比亚技术有限公司 A kind of method of terminal and terminal cleaning caching
CN107368345A (en) * 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 The method and device of application data processing
CN106126708A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 A kind of method and apparatus of the file deleting terminal storage
CN106293002A (en) * 2016-08-05 2017-01-04 四川长虹通信科技有限公司 A kind of ultimate attainment province electric terminals and electricity saving method thereof
CN106372003B (en) * 2016-09-08 2020-01-10 Oppo广东移动通信有限公司 Cache data cleaning method and device and terminal
CN106598880A (en) * 2016-12-16 2017-04-26 深圳市金立通信设备有限公司 Cache management method and terminal
CN107193885A (en) * 2017-04-27 2017-09-22 维沃移动通信有限公司 A kind of data cached management method of music and mobile terminal
CN107301020A (en) * 2017-06-22 2017-10-27 苏州交运电子科技有限公司 Data managing method and managing device
CN108287878A (en) * 2018-01-02 2018-07-17 沈阳东软医疗系统有限公司 A kind of dynamic buffering data failure dispatching method, device and caching system
CN108833658A (en) * 2018-03-27 2018-11-16 陈迎春 A kind of method and apparatus of data scrubbing
CN108733489A (en) * 2018-05-11 2018-11-02 五八同城信息技术有限公司 Data processing method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794778A (en) * 2004-11-09 2006-06-28 佳能株式会社 Image processing apparatus and image processing method
CN101170763A (en) * 2006-10-24 2008-04-30 张扬 System and device for user interface of mobile phone browser
CN101576856A (en) * 2009-06-18 2009-11-11 浪潮电子信息产业股份有限公司 Buffer data replacement method based on access frequency within long and short cycle
CN103412753A (en) * 2013-08-12 2013-11-27 宇龙计算机通信科技(深圳)有限公司 Image deletion method and device
CN103714137A (en) * 2013-12-19 2014-04-09 大唐移动通信设备有限公司 Method and system for deleting data files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520947A (en) * 2011-12-09 2012-06-27 中兴通讯股份有限公司 Method and device for automatically removing codes
CN103164501A (en) * 2012-07-04 2013-06-19 北京安天电子设备有限公司 Method and system of rapid file erasure of anti-recovery software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794778A (en) * 2004-11-09 2006-06-28 佳能株式会社 Image processing apparatus and image processing method
CN101170763A (en) * 2006-10-24 2008-04-30 张扬 System and device for user interface of mobile phone browser
CN101576856A (en) * 2009-06-18 2009-11-11 浪潮电子信息产业股份有限公司 Buffer data replacement method based on access frequency within long and short cycle
CN103412753A (en) * 2013-08-12 2013-11-27 宇龙计算机通信科技(深圳)有限公司 Image deletion method and device
CN103714137A (en) * 2013-12-19 2014-04-09 大唐移动通信设备有限公司 Method and system for deleting data files

Also Published As

Publication number Publication date
CN105095107A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US10666600B2 (en) Integrated contact card communication
US9344555B2 (en) Maintaining history information for a user across multiple types of end points
KR101615093B1 (en) Method and system for displaying unread message
JP6178928B2 (en) Dynamic filter generation for message management systems
US9729675B2 (en) Enhancement of upload and/or download performance based on client and/or server feedback information
CN103404193B (en) The connection that adjustment data transmission is established with the transmission being optimized for through wireless network
EP2854372B1 (en) Method and device for displaying pushed information
KR101902037B1 (en) Adaptive notifications
CN109257487B (en) Notification bar message management method and device and computer readable storage medium
CN103957324B (en) By the method and system that mobile communication terminal and TV programme are mutual
US9037975B1 (en) Zooming interaction tracking and popularity determination
CN102906750B (en) The content item selected based on context is provided
RU2595761C2 (en) Control information associated with network resources
US8990701B2 (en) Gathering and organizing content distributed via social media
CN103765420B (en) System and method for being synchronized on the backstage of application to action
JP5805616B2 (en) Apparatus and method for searching / downloading content in a communication device
US8826141B2 (en) Image-based and predictive browsing
US9015601B2 (en) Batch uploading of content to a web-based collaboration environment
US20170177552A1 (en) Remote browsing and searching
US9063912B2 (en) Multimedia content preview rendering in a cloud content management system
CN102934080B (en) Network application home button
KR101566565B1 (en) Dynamically updated virtual list view
US8589385B2 (en) Historical browsing session management
KR100772875B1 (en) Apparatus and method for setting user interface according to user preference
ES2751654T3 (en) Menu layout processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant