CN107122454A - A kind of image cache sweep-out method, equipment and computer-readable recording medium - Google Patents

A kind of image cache sweep-out method, equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107122454A
CN107122454A CN201710283578.6A CN201710283578A CN107122454A CN 107122454 A CN107122454 A CN 107122454A CN 201710283578 A CN201710283578 A CN 201710283578A CN 107122454 A CN107122454 A CN 107122454A
Authority
CN
China
Prior art keywords
image cache
value
less
image
cache
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.)
Pending
Application number
CN201710283578.6A
Other languages
Chinese (zh)
Inventor
张作林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710283578.6A priority Critical patent/CN107122454A/en
Publication of CN107122454A publication Critical patent/CN107122454A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0891Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using clearing, invalidating or resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Abstract

The invention discloses a kind of image cache sweep-out method, applied to mobile terminal, methods described includes step when receiving internal memory clearance order, remove the first object image cache in the terminal device, wherein, the first object image cache is the image cache that integrated value is less than first integral value;Judge whether current memory value is more than target memory value;Cached if not, removing the second Target Photo in the terminal device, wherein, the second Target Photo caching is less than the image cache of second integral value for integrated value.The embodiment of the present invention additionally provides a kind of image cache and understands device, the embodiment provided using the present invention, while the internal memory for reaching increase terminal is removed at realization figure caching, ensure that the reading rate of image cache.

Description

A kind of image cache sweep-out method, equipment and computer-readable recording medium
Technical field
The present invention relates to the image cache clearance technique field of mobile terminal, more particularly to a kind of image cache removing side Method, equipment and computer-readable recording medium.
Background technology
Image cache, is that picture is temporarily stored in terminal device, is directly transferred when being used next time so as to client.Carry out Image cache, if flow can be saved if the online use of terminal device;And the picture load time can be optimized, enhancing is used Experience at family.Currently the majority mobile terminal app introduces image cache mechanism.
Existing image cache, mainly includes memory cache and disk buffering two parts.Memory cache can improve caching The speed of reading, but the internal memory taken is than larger, and can not persistence caching.Disk buffering, is sacrificing read rate In the case of, internal memory, and persistence caching picture can be saved.Both are used in combination, in use, read memory cache, carry Rise caching reading rate.When terminal device receives the not enough warning of memory source, image cache can be emptied, makes into read magnetic Disk is cached, and reduces app EMS memory occupation amount, less EMS memory occupation is exchanged for sacrifice reading rate.So, caching can ensured While reading rate, more internal memories are saved.
Generally, take most of internal memory, cause the larger picture of the only a small amount volume ratio of picture of internal memory warning, if this When, whole image cache is cleaned out, then can some volumes are smaller, and frequency of use very high picture is also from interior Cleaned out in depositing, need to need all once to be loaded when these pictures again.Therefore, asked present in prior art Topic is:While internal memory is increased, because deleting the reading rate that all image caches influence whether all image caches.
The content of the invention
It is a primary object of the present invention to propose a kind of image cache sweep-out method, equipment and computer-readable storage medium Matter, it is intended to while solving to remove the internal memory for reaching increase terminal at realization figure caching, ensure that the reading of image cache Speed.
To achieve the above object, a kind of image cache sweep-out method that the present invention is provided, methods described includes step:
First removes step:When receiving internal memory clearance order, the first object picture in the terminal device is removed Caching, wherein, the first object image cache is the image cache that integrated value is less than first integral value;
Judgment step:Judge whether current memory value is more than target memory value;
Second removes step:Cached if not, removing the second Target Photo in the terminal device, wherein, described second Target Photo caching is less than the image cache of second integral value for integrated value.
Optionally, the first integral value, the determination mode of the second integral value are:
Preset first integral value, second integral value;
Or,
Preset first integral value, and according to the target memory value and the difference of current memory value, determine described the Two integrated values.
Optionally, the determination step of the integrated value of image cache, including:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting picture In one or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture be image content phase Same but size is less than the picture of the image cache.
Optionally, the size of each image cache determines the initial product of the image cache in the area according to image cache Score value, including:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, the initial integration value of the image cache is set For the second default integrated value;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, it is determined that The initial integration value of the image cache.
Optionally, it is described that the second integral value is determined according to the target memory value and the difference of current memory value, wrap Include:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd mesh is determined Mark the top value in image cache;
By not less than any integrated value of the top value, it is defined as second integral value.
Compared to prior art, image cache sweep-out method proposed by the invention is delayed carrying out picture to terminal device When depositing removing, autotelic deletion is carried out by integrated value;Needed in the prior art when removing image cache so as to solve Whole image caches is cleaned out, the picture load time length when reusing and the reading rate of image cache that causes compared with Low the problem of.Therefore, the embodiment provided using the present invention, ensure that the reading rate of image cache.
In addition, to achieve the above object, the present invention also proposes that a kind of image cache removes equipment, and the image cache is removed Equipment includes:Memory, processor and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the image cache clear program stored in memory, to realize following steps:
When receiving internal memory clearance order, the first object image cache in the terminal device is removed, wherein, it is described First object image cache is the image cache that integrated value is less than first integral value;
Judge whether current memory value is more than target memory value;
Cached if not, removing the second Target Photo in the terminal device, wherein, the second Target Photo caching is Integrated value is less than the image cache of second integral value.
Optionally, the processor is used to perform the image cache clear program, to realize following steps:
Preset first integral value, second integral value;
Or,
Preset first integral value, and according to the target memory value and the difference of current memory value, determine described the Two integrated values.
Optionally, the processor is used to perform the image cache clear program, to realize following steps:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting picture In one or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture be image content phase Same but size is less than the picture of the image cache.
Optionally, the processor is used to perform the image cache clear program, to realize following steps:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, the initial integration value of the image cache is set For the second default integrated value;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, it is determined that The initial integration value of the image cache.
Optionally, the processor is used to perform the image cache clear program, to realize following steps:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd mesh is determined Mark the top value in image cache;
By not less than any integrated value of the top value, it is defined as second integral value.
Compared to prior art, image cache proposed by the invention removes equipment, delays carrying out picture to terminal device When depositing removing, autotelic deletion is carried out by integrated value;Needed in the prior art when removing image cache so as to solve Whole image caches is cleaned out, the picture load time length when reusing and the reading rate of image cache that causes compared with Low the problem of.Therefore, the embodiment provided using the present invention, ensure that the reading rate of image cache.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor OK, to realize following steps:
First removes step:When receiving internal memory clearance order, the first object image cache in terminal device is removed, Wherein, the first object image cache is the image cache that integrated value is less than first integral value;
Judgment step:Judge whether current memory value is more than target memory value;
Second removes step:Cached if not, removing the second Target Photo in the terminal device, wherein, described second Target Photo caching is less than the image cache of second integral value for integrated value.
Optionally, one or more of programs can also by one or more of computing devices, with realize with Lower step:
Preset first integral value, second integral value;
Or,
Preset first integral value, and according to the target memory value and the difference of current memory value, determine described the Two integrated values.
Optionally, one or more of programs can also by one or more of computing devices, with realize with Lower step:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting picture In one or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture be image content phase Same but size is less than the picture of the image cache.
Optionally, one or more of programs can also by one or more of computing devices, with realize with Lower step:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, the initial integration value of the image cache is set For the second default integrated value;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, it is determined that The initial integration value of the image cache.
Optionally, one or more of programs can also by one or more of computing devices, with realize with Lower step:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd mesh is determined Mark the top value in image cache;
By not less than any integrated value of the top value, it is defined as second integral value.
Compared to prior art, computer-readable recording medium proposed by the invention is carrying out picture to terminal device When caching is removed, autotelic deletion is carried out by integrated value;Needed in the prior art when removing image cache so as to solve Whole image caches is cleaned out, the picture load time length when reusing and the reading rate of image cache that causes Relatively low the problem of.Therefore, the embodiment provided using the present invention, ensure that the reading rate of image cache.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is image cache sweep-out method schematic flow sheet of the present invention;
Fig. 4 is a kind of low memory prompting schematic diagram of the present invention;
Fig. 5 is another low memory prompting schematic diagram of the present invention;
Fig. 6 is the first embodiment implementation process diagram of image cache sweep-out method of the present invention;
Fig. 7 is the second embodiment implementation process diagram of image cache sweep-out method of the present invention;
Fig. 8 is the module diagram of one embodiment that image cache of the present invention removes equipment;
Fig. 9 is computer-readable recording medium module diagram of the present invention.
Reference:
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera) Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
First, the present invention further provides a kind of image cache sweep-out method.
As shown in figure 3, being image cache sweep-out method schematic flow sheet of the present invention.This method is applied to mobile whole On end 100, the mobile terminal 1 00 includes memory cell, and the mobile terminal 1 00 also includes display screen.In the present embodiment, The image cache sweep-out method can be divided into following steps:Step S310 is the first removing step:Removed when receiving internal memory During instruction, the first object image cache in the terminal device is removed, wherein, the first object image cache is integrated value Less than the image cache of first integral value;Step S320 is judgment step:Judge whether current memory value is more than target memory value; And step S330 is the second removing step:In the case that S320 judged result is no, remove second in the terminal device Target Photo is cached, wherein, the second Target Photo caching is less than the image cache of second integral value for integrated value.It is above-mentioned this A little steps are according to different demand adjustment orders, or omit some steps.Or other steps can also be supplemented according to demand Suddenly.
S310, when receiving internal memory clearance order, removes the first object image cache in the terminal device, its In, the first object image cache is the image cache that integrated value is less than first integral value.
It should be noted that when the buffer memory in terminal device is larger, the system of terminal device can be caused to send internal memory It is not enough or the advisory warning such as need to clear up.When performing internal memory clearance order, the Doctype of removing is allocated by system, Such as image cache, file cache, when performing cleaning image cache, according to the integrated value of image cache, remove terminal and set Image cache in standby.Specifically, first object image cache can be removed, first object image cache is that integrated value is less than the The image cache of one integrated value.
It is understood that the integrated value of all image caches in the first object image cache removed is respectively less than first Integrated value.First integral value, can be any one integrated value that terminal device is voluntarily set or according to it is current most Integrated value that high integrated value and lowest total of points value are divided (e.g., being averaged according to top value and lowest total of points value Value, first integral is used as first integral value, or using 1/3rd of lowest total of points value and top value sum Value, etc.) or according to the integrated value of other rule settings
In practical application, can the integrated value of each image cache in image cache region be set first, so as to reach The purpose of image cache is removed according to integrated value.Can be any setting specifically, setting image cache integrated value;Can also It is to be set according to the type of image cache;It can also be set, e.g., be set according to the corresponding application program of image cache The integrated value of the image cache of chat software is that the 50, integrated value of the image cache of setting mailbox client software is 80, etc..
In the embodiment of the present invention, terminal device can be determined according to the size of each image cache in image cache area should The initial integration value of image cache;Then further according to the initial integration value of each image cache, and when frequency of use, preservation Between, with the presence or absence of substitute picture in one or more, determine the integrated value of the image cache, wherein, any picture caching Substitute that picture is that image content is identical but size is less than the picture of the image cache.
In one embodiment of the invention, the size of image cache namely picture volume dimension, decide the first of picture Beginning integrated value.Because the influence of this dimension is fixed, and it is also that important (the larger picture of volume ratio should use up The preferential cleaning of amount).So in volume scale, the span of integration is also than larger.The bigger picture of volume should be integrated more It is few, more tend to preferentially be cleaned.It is for instance possible to use following scheme determines the initial integration value of picture:Judge image cache Whether the size of the image cache of each in area is less than the first pre-set dimension;If it is, setting the initial integration of the image cache It is worth for the first default integrated value;If not, judging whether the size of the image cache is less than the second pre-set dimension;It is slow in the picture In the case that the size deposited is less than the second pre-set dimension, it is the second default integrated value to set the initial integration value of the image cache; In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, determines that the picture delays The initial integration value deposited.
Exemplary, the first pre-set dimension is 100KB, and when image cache is less than 100KB, integrated value is 100;If no Less than 100KB, then judge whether to be less than the second pre-set dimension 500KB, if less than 500KB, then integrated value is 80;If not small In 500KB, the 3rd pre-set dimension can also be set, specific comparison procedure ibid, according to the pre-set dimension of every one-level, sets one Individual corresponding default integrated value, so target, which presets integrated value, to be a default integrated value, or multiple default products Score value, the embodiment of the present invention is not limited specifically it herein.
In another embodiment of the invention, in the case where the other conditions of image cache are consistent, image cache makes It is higher with frequency, show that the frequency that the image cache is used by a user in next time is higher, in order to obtain more preferable user's physical examination, subtract Few user loads the time of the image cache, thus should integrated value it is higher, more tend to preferential reservation, it is to avoid be deleted.
Exemplary, can setting the frequency of use correspondence of image cache, (integrated value can be initial product by integrated value Score value or in crossbeam frequency of use, holding time or substitute the integrated value obtained after the factors such as picture) increased Add operation, e.g., is less than or equal to 5 minutes/time, integrated value adds 5 in frequency of use,;Exemplary, the integrated value of image cache is 80, then the integrated value of the image cache is now:80+5=85.It is more than or equal to 20 minutes/time, initial integration in frequency of use Value plus -10,;Exemplary, the integrated value of image cache is 80, then the integrated value of the image cache is now:80+(-10) =75.
In another embodiment of the invention, in the case where the other conditions of image cache are consistent, image cache Holding time is that the time of image cache committed memory is longer, it should which integration is lower, more tends to preferential cleaning.Formed objects Picture, frequency of use is same, if the time in memory cache is more long, illustrates that the tendency that it is frequently used is lower, Such image cache should be cleaned out preferentially.
Exemplary, it is less than or equal to 60 minutes preserving, integrated value adds 5;Exemplary, the initial integration value of image cache For 70, then the integrated value of the image cache is now:70+5=75.It is more than 60 minutes preserving, initial integration value adds -10; Exemplary, the initial integration value of image cache is 80, then the integrated value of the image cache is now:80+ (- 10)=75.
In the another embodiment of the present invention, if a big figure exist it is identical with its content, it is but smaller Picture, that is, exist and substitute picture.So when using big figure, and big figure is when be cleaned out, it is possible to small figure come temporarily Big figure is replaced, until big figure is loaded into memory cache again, i.e., it has the replacement picture of high-quality and delayed to substitute the picture Deposit.Then in the case of other identicals, such image cache can be cleaned prior to other pictures (that is, to be deposited in one big figure In the case of high-quality scapegoat, its integration should be reduced).Meanwhile, delay if the high-quality that a small figure is another big figure is substituted Deposit, then in the case of other situation identicals, it should preferentially be retained, because it is also born as another figure that magnifies The responsibility (that is, in the case that one small figure is another high-quality scapegoat for magnifying figure, its integration should increase) of scapegoat.It is exemplary , in the case where image cache exists and substitutes picture, the current integration value of the picture cuts 2 points, and for substituting picture Integrated value increases by 2 points.What the integrated value of above image cache was merely exemplary, do not constitute the specific limit to the embodiment of the present invention It is fixed.
Due to terminal device can according to the initial integration value of each image cache, further according to frequency of use, preserve when Between, with the presence or absence of substitute picture in one or more, determine the integrated value of the image cache, then specifically with which factor The integrated value embodiment of the present invention for determining picture is first gone to be not limited thereof herein.For example, can initial integration value base On plinth according to frequency of use, the holding time, with the presence or absence of substitute picture order (this order represent priority, i.e., first basis make An integrated value X is obtained on the basis of initial integration value with frequency, then is obtained by the holding time on the basis of integrated value X Integrated value Y, then integrated value Z is obtained on the basis of integrated value Y by substituting picture, then integrated value Z is the image cache Integrated value) determine image cache integrated value, can also according to frequency of use, with the presence or absence of substitute picture, the holding time it is suitable Sequence determines the integrated value of image cache, can also determined according to frequency of use, with the presence or absence of replacement picture, the order of holding time Integrated value of image cache etc., the embodiment of the present invention is not limited thereof herein.
Using embodiments of the invention, when internal memory warning is received, caching is begun a clean up.Preferentially clear up those integrations Than relatively low image cache (these pictures, space-consuming is big, frequency of use is low, there is interim scapegoat, holding time length), until Enough internal memories are discharged, the high image cache of more integrations is retained as far as possible, and (these pictures occupy little space, frequency of use Interim scapegoat that is high, being some pictures, holding time are short).Thus can as much as possible it be utilized while the internal memory of saving Memory cache optimizes image cache reading rate.
S320, judges whether current memory value is more than target memory value;If not, performing S330.
It will be appreciated by persons skilled in the art that after first object image cache is removed, can discharge in part Deposit space, terminal device can obtain the current memory value of itself, current memory value be terminal device can currently use it is interior Deposit value.
In addition, terminal device can also set a target memory value, when the memory value of terminal device is not less than in target Terminal device normal operation when depositing value, or internal memory service efficiency are higher, specifically, the setting of target memory value can be satisfaction Terminal device any one memory value normally run or the minimum memory value met certain requirements, can also be based on Other purposes are set, and the embodiment of the present invention is not limited specifically it herein.
S330, removes the second Target Photo in the terminal device and caches, wherein, the second Target Photo caching is product Score value is less than the image cache of second integral value.
In the embodiment of the present invention, it can be obtained by S320, when the current memory value of terminal device is less than or equal to target memory During value, represent that the current memory value of terminal device is still inadequate, in addition it is also necessary to further carry out image cache cleaning, it is specific which is cleared up A little image caches, can set second integral value, second integral value can carry out any setting, can also be according to terminal device (this lowest total of points value is different from the first integral value in S310, and this is most for top value and lowest total of points value in image cache The corresponding image cache of lower integral value has been cleared by step S310, and lowest total of points value herein is:In S310 most In the case that the corresponding image cache of lower integral value is disposed of, the integrated value that image cache is had again is progressive for lowest total of points Value) set, it can such as remove the average value of lowest total of points value and top value or be obtained by other rules Take, with reference to the setting process of step S310 first integral value, the embodiment of the present invention is not limited thereof herein.
In the embodiment of the present invention, the image cache that integrated value is less than second integral value is cached as the second Target Photo, And be purged, obtain more memory values.
In inventive embodiments, a kind of scheme for determining second integral value is additionally provided:Determine the target memory value with working as The difference of preceding memory value;When the image cache size sum in the 3rd Target Photo caching is not less than the difference, institute is determined State the top value in the 3rd Target Photo caching;Not less than any integrated value of the top value, will be defined as Two integrated values, wherein, the 3rd Target Photo caches in image cache region, to constitute according to the order of integrated value from low to high Image cache set.
It is understood that when all image cache size sums in the 3rd Target Photo caching removed are not less than mesh During the difference of mark memory value and current memory value, the current memory value of the terminal device obtained after cleaning the 3rd Target Photo caching is i.e. More than or equal to target memory value.Top value in 3rd Target Photo caching is minimum article for meeting second integral value Part, as long as so any one value in top value in being cached more than or equal to the 3rd Target Photo can be as the Two integrated values.If it is considered that second is excessive, then the image cache being deleted is also more, then when reusing It is accomplished by reloading more pictures.So second integral value can be suitably be more than the 3rd Target Photo cache in highest Integrated value, or also may be used equal to the top value in the 3rd Target Photo caching.The embodiment of the present invention is not accumulated to second herein Score value is specifically limited.
Exemplary, the difference of target memory value and current memory value is 1MB, according to the integrated value in image cache region Order from low to high, the collection for obtaining image cache is combined into the 3rd Target Photo caching, and exemplary, the 3rd Target Photo delays Picture number in depositing is 10, and the size sum of 10 image caches is 1.3MB, because 1.3MB is more than 1MB, then really Top value in this fixed 10 image caches, it is exemplary, it is 75.So second integral value can be 75, or 76th, 77,80,81,85,90 etc., what the integrated value in the embodiment of the present invention was merely exemplary.
Using the embodiment shown in Fig. 3 of the present invention, referring to Fig. 4 and Fig. 5, Fig. 4 asks user's confirmation to be to there is internal storage warning Interactive interface figure during no progress internal memory cleaning;Fig. 5 for carried out image cache cleaning after internal memory still can not meet require when Interactive interface figure.
It is understood that the removing to image cache in equipment in terminal can be realized by S310-S330, work as picture The requirement for being remained as after removing twice and reaching internal memory is cached, can perform again can be multiple in removing, practical application The clear action of image cache is performed, the protection domain of the embodiment of the present invention is belonged to.
Using the embodiment shown in Fig. 3 of the present invention, when carrying out image cache removing to terminal device, entered by integrated value Row is autotelic to be deleted;Need to clear up whole image caches in the prior art when removing image cache so as to solve Fall, the picture load time length when reusing and the problem of the relatively low reading rate of image cache that causes.Therefore, using this The embodiment provided is provided, the reading rate of image cache is ensure that.
Two embodiments are introduced in detail below.
Embodiment one:
As shown in fig. 6, being image cache sweep-out method first embodiment schematic flow sheet of the present invention.In this implementation In example, according to different demands, the step execution sequence in the flow chart shown in Fig. 6 can change, and some steps can be omitted.
Step S610, when receiving internal memory clearance order, it is determined that the first application in the terminal device that needs are removed The first object image cache of program, wherein, the first application program is any application in the terminal device.
It is understood that image cache can be stored in different regions according to different application programs, first really The fixed corresponding caching of application program for needing to remove, and then determine first object figure in the integrated value of the caching in the region Piece is cached.It should be noted that the number of the application program in the first application program can be one, or multiple, such as Fruit just clears up the corresponding image cache of multiple application programs to be multiple.
Step S620, judges whether current memory value is more than target memory value, if otherwise performing step S630;Otherwise, delay Reset procedure is deposited to terminate.
Step S630, removes the second Target Photo caching of the second application program in the terminal device, wherein, second should It is the application program in the terminal device in addition to described first applies with program.
Work as it should be noted that still can not be met after the first object image cache in the first application program is removed During the demand of preceding memory value, in addition it is also necessary to further clear up in image cache, the embodiment of the present invention, second can be removed and apply journey The corresponding image cache of sequence.Wherein, the second application program is the application journey in the terminal device in addition to described first applies Sequence.
Embodiment two:
As shown in fig. 7, being the first embodiment schematic flow sheet of image cache sweep-out method of the present invention.In this reality Apply in example, according to different demands, the execution sequence of the step in flow chart shown in Fig. 4 can change, some steps can be with Omit.
Step S710, obtains the size in the corresponding image cache region of each application program in terminal device, and obtains First kind image cache, wherein, first image cache is that the maximum corresponding picture of application program in image cache region delays Deposit.
It is understood that the image cache of an application program can correspond to a region (if should in terminal device All stored together including picture with all documents of program, then the size of image cache in the document can be obtained, that is, schemed The size of piece buffer zone), then the size in the image cache region of each application program can be obtained, and obtains and applies journey The maximum corresponding all image caches in the corresponding image cache region of sequence, i.e. first kind image cache.It is understood that will Image cache is removed, most efficient method can remove the most region of image cache, and the embodiment of the present invention is to use The thought.
Step S720, removes the first object image cache in the first kind image cache, wherein, the first object Image cache is less than the image cache of first integral value for integrated value in the first kind image cache.
It will be appreciated by persons skilled in the art that S720 is to remove some of first kind image cache or all figure Piece is cached.
Step S730, judges whether current memory value is more than target memory value, if it is not, performing step S740.
Step S740, removes the second Target Photo caching in the Equations of The Second Kind image cache in the terminal device, wherein, The Equations of The Second Kind image cache is the corresponding application program of the first kind image cache to outer other applications correspondence Image cache, second Target Photo caching is the figure that integrated value is less than second integral value in the Equations of The Second Kind image cache Piece is cached.
It is understood that it can also be application program correspondence that the image cache in Equations of The Second Kind image cache, which can be one, Image cache, image cache region image cache more corresponding than larger application program can also be selected to be cleared up, to carry High cleaning efficiency.
By above-mentioned steps S710-S740, image cache method provided by the present invention is removed by obtaining application program The size of corresponding image cache summation, so as to be purged the corresponding image cache of application program.With for improving use Family Experience Degree.
Meanwhile, the present invention is it is also proposed that a kind of image cache remove device 800.
As shown in figure 8, image cache of the present invention removes the module diagram of one embodiment of equipment.
In the present embodiment, the image cache, which removes equipment 800, can be divided into one or more modules, described one Individual or multiple modules are stored in the picture memory 810, and as performed by one or more processors 820, to complete The present invention.
Referring to Fig. 8, the embodiment of the present invention provides image cache and removes equipment 800, and the image cache is removed equipment 800 and wrapped Include:Memory 810, processor 820 and communication bus 830;
The communication bus 830 is used to realize the connection communication between processor 820 and memory 810;
The processor is used to perform the image cache clear program stored in memory 810, to realize following steps:
When receiving internal memory clearance order, the first object image cache in terminal device is removed, wherein, described first Target Photo caching is less than the image cache of first integral value for integrated value;
Judge whether current memory value is more than target memory value;
Cached if not, removing the second Target Photo in the terminal device, wherein, the second Target Photo caching is Integrated value is less than the image cache of second integral value.
Further, the processor 820 is used to perform the image cache clear program, to realize following steps:
Preset first integral value, second integral value;
Or,
Preset first integral value, and according to the target memory value and the difference of current memory value, determine described the Two integrated values.
Further, stating processor 820 is used to perform the image cache clear program, to realize following steps:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting picture In one or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture be image content phase Same but size is less than the picture of the image cache.
Further, processor 820 is used to perform the image cache clear program, to realize following steps:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, the initial integration value of the image cache is set For the second default integrated value;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, it is determined that The initial integration value of the image cache.
Further, the processor 820 is used to perform the image cache clear program, to realize following steps:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd mesh is determined Mark the top value in image cache;
By not less than any integrated value of the top value, it is defined as second integral value.
Using the embodiment shown in Fig. 8 of the present invention, when carrying out image cache removing to terminal device, entered by integrated value Row is autotelic to be deleted;Need to clear up whole image caches in the prior art when removing image cache so as to solve Fall, the picture load time length when reusing and the problem of the relatively low reading rate of image cache that causes.Therefore, using this The embodiment provided is provided, the reading rate of image cache is ensure that.
Referring to Fig. 9, the present invention also proposes computer-readable recording medium 900, the computer-readable recording medium storage Having one or more program 910, (program 1 to program n), one or more of programs can be handled by one or more (processor 1 to processor m) is performed device 920, to realize following steps:
First removes step:When receiving internal memory clearance order, the first object image cache in terminal device is removed, Wherein, the first object image cache is the image cache that integrated value is less than first integral value;
Judgment step:Judge whether current memory value is more than target memory value;
Second removes step:Cached if not, removing the second Target Photo in the terminal device, wherein, described second Target Photo caching is less than the image cache of second integral value for integrated value.
Further, one or more of programs 910 can also be performed by one or more of processors 920, To realize following steps:
Preset first integral value, second integral value;
Or,
Preset first integral value, and according to the target memory value and the difference of current memory value, determine described the Two integrated values.
Further, one or more of programs 910 can also be performed by one or more of processors 920, To realize following steps:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting picture In one or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture be image content phase Same but size is less than the picture of the image cache.
Further, one or more of programs 910 can also be performed by one or more of processors 920, To realize following steps:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, the initial integration value of the image cache is set For the second default integrated value;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, it is determined that The initial integration value of the image cache.
Further, one or more of programs 910 can also be performed by one or more of processors 920, To realize following steps:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd mesh is determined Mark the top value in image cache;
By not less than any integrated value of the top value, it is defined as second integral value.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Computer-readable recording medium shown in Fig. 9 of the present invention, when carrying out image cache removing to terminal device, passes through Integrated value carries out autotelic delete;Need to delay in whole pictures in the prior art when removing image cache so as to solve Deposit and clean out, the picture load time length when reusing and the problem of the relatively low reading rate of image cache that causes.Therefore, The embodiment provided using the present invention, ensure that the reading rate of image cache.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The alternative embodiment of the present invention is these are only, is not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of image cache sweep-out method, it is characterised in that methods described includes step:
First removes step:When receiving internal memory clearance order, the first object image cache in terminal device is removed, its In, the first object image cache is the image cache that integrated value is less than first integral value;
Judgment step:Judge whether current memory value is more than target memory value;
Second removes step:Cached if not, removing the second Target Photo in the terminal device, wherein, second target Image cache is the image cache that integrated value is less than second integral value.
2. image cache sweep-out method according to claim 1, it is characterised in that the first integral value, described second The determination mode of integrated value is:
Preset first integral value, second integral value;
Or,
First integral value is preset, and according to the target memory value and the difference of current memory value, determines second product Score value.
3. image cache sweep-out method according to claim 1 or 2, it is characterised in that the integrated value of image cache is really Determine step, including:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting in picture One or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture for image content it is identical, But size is less than the picture of the image cache.
4. image cache sweep-out method according to claim 3, it is characterised in that each in the area according to image cache The size of individual image cache determines the initial integration value of the image cache, including:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, it is the to set the initial integration value of the image cache Two default integrated values;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, the figure is determined The initial integration value of piece caching.
5. image cache sweep-out method according to claim 2, it is characterised in that it is described according to the target memory value with The difference of current memory value, determines the second integral value, including:
Determine the difference of the target memory value and current memory value;
When the image cache size sum in the 3rd Target Photo caching is not less than the difference, the 3rd target figure is determined Top value in piece caching;
By not less than any integrated value of the top value, it is defined as second integral value.
6. a kind of image cache removes equipment, it is characterised in that the image cache, which removes equipment, to be included:Memory, processor And communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the image cache clear program stored in memory, to realize following steps:
When receiving internal memory clearance order, the first object image cache in terminal device is removed, wherein, the first object Image cache is the image cache that integrated value is less than first integral value;
Judge whether current memory value is more than target memory value;
Cached if not, removing the second Target Photo in the terminal device, wherein, the second Target Photo caching is integration Image cache of the value less than second integral value.
7. image cache according to claim 6 removes equipment, it is characterised in that the processor is used to perform the figure Piece caches clear program, to realize following steps:
Preset first integral value, second integral value;
Or,
First integral value is preset, and according to the target memory value and the difference of current memory value, determines second product Score value.
8. the image cache according to claim 6 or 7 removes equipment, it is characterised in that the processor is used to perform institute Image cache clear program is stated, to realize following steps:
The initial integration value of the image cache is determined according to the size of each image cache in image cache area;
According to the initial integration value of each image cache, and frequency of use, holding time, with the presence or absence of substituting in picture One or more, determine the integrated value of the image cache, wherein, any picture caching replacement picture for image content it is identical, But size is less than the picture of the image cache.
9. image cache according to claim 8 removes equipment, it is characterised in that the processor is used to perform the figure Piece caches clear program, to realize following steps:
Judge whether the size of each image cache in image cache area is less than the first pre-set dimension;
If it is, setting the initial integration value of the image cache to be the first default integrated value;
If not, judging whether the size of the image cache is less than the second pre-set dimension;
In the case where the size of the image cache is less than the second pre-set dimension, it is the to set the initial integration value of the image cache Two default integrated values;
In the case where the size of the image cache is not less than the second pre-set dimension, integrated value is preset according to target, the figure is determined The initial integration value of piece caching.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, so that the image cache removing side described in one or more of computing device claim any one of 1-5 Method step.
CN201710283578.6A 2017-04-26 2017-04-26 A kind of image cache sweep-out method, equipment and computer-readable recording medium Pending CN107122454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710283578.6A CN107122454A (en) 2017-04-26 2017-04-26 A kind of image cache sweep-out method, equipment and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710283578.6A CN107122454A (en) 2017-04-26 2017-04-26 A kind of image cache sweep-out method, equipment and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107122454A true CN107122454A (en) 2017-09-01

Family

ID=59725914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710283578.6A Pending CN107122454A (en) 2017-04-26 2017-04-26 A kind of image cache sweep-out method, equipment and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107122454A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032421A (en) * 2019-04-18 2019-07-19 腾讯科技(深圳)有限公司 The management method of atlas, device, terminal and storage medium in memory
WO2020006859A1 (en) * 2018-07-06 2020-01-09 平安科技(深圳)有限公司 Image cache cleaning method and device, terminal device and medium
CN111966642A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Picture management method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN101714120A (en) * 2008-10-06 2010-05-26 深圳富泰宏精密工业有限公司 Data storage system and method
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN101714120A (en) * 2008-10-06 2010-05-26 深圳富泰宏精密工业有限公司 Data storage system and method
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020006859A1 (en) * 2018-07-06 2020-01-09 平安科技(深圳)有限公司 Image cache cleaning method and device, terminal device and medium
CN110032421A (en) * 2019-04-18 2019-07-19 腾讯科技(深圳)有限公司 The management method of atlas, device, terminal and storage medium in memory
CN111966642A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Picture management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN108563499A (en) CDN server switching method, mobile terminal and computer readable storage medium
CN107566635A (en) Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107329682A (en) Edge exchange method and mobile terminal
CN108768775A (en) Information processing method, electronic equipment and computer storage media
CN107182097A (en) A kind of method for switching network, terminal and computer-readable recording medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN108280136A (en) A kind of multimedia object method for previewing, equipment and computer readable storage medium
CN107749919A (en) A kind of application program page display method and equipment
CN108021698A (en) Delet method, device and the computer-readable storage medium of storage file
CN107678698A (en) Data cached method for cleaning, server, terminal and computer-readable recording medium
CN108196777A (en) A kind of flexible screen application process, equipment and computer readable storage medium
CN108170348A (en) A kind of thumbnail method for previewing, equipment and computer readable storage medium
CN107390856A (en) A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption
CN107122454A (en) A kind of image cache sweep-out method, equipment and computer-readable recording medium
CN108600325A (en) A kind of determination method, server and the computer readable storage medium of push content
CN108563388A (en) Screen operating method, mobile terminal and computer readable storage medium
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium
CN108540697A (en) It is double before and after one kind to take the photograph circuit structure and its mobile terminal
CN107466081A (en) A kind of wireless switching method and terminal
CN107360211A (en) A kind of inserting method, relevant device and the computer-readable storage medium of information flow information
CN107133108A (en) Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock
CN107357741A (en) A kind of application management method, equipment and computer-readable storage medium
CN108879117A (en) Mobile terminal and its antenna structure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170901