WO2022111502A1 - 应用缓存的清理方法、装置、电子设备及介质 - Google Patents

应用缓存的清理方法、装置、电子设备及介质 Download PDF

Info

Publication number
WO2022111502A1
WO2022111502A1 PCT/CN2021/132688 CN2021132688W WO2022111502A1 WO 2022111502 A1 WO2022111502 A1 WO 2022111502A1 CN 2021132688 W CN2021132688 W CN 2021132688W WO 2022111502 A1 WO2022111502 A1 WO 2022111502A1
Authority
WO
WIPO (PCT)
Prior art keywords
cache
application
identifier
displayed
preset
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.)
Ceased
Application number
PCT/CN2021/132688
Other languages
English (en)
French (fr)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2022111502A1 publication Critical patent/WO2022111502A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a method, device, electronic device and medium for clearing application cache.
  • the purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for cleaning application cache, which can solve the problems of cumbersome cleaning process and low cleaning efficiency of application cache data in the prior art.
  • an embodiment of the present application provides a method for cleaning an application cache, including:
  • the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, and each cache type corresponding to cache size;
  • the cache data corresponding to the cache identifier in the target application is cleared.
  • an application cache cleaning device including:
  • a receiving module configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, the The cache sizes corresponding to the cache types described above;
  • a clearing module configured to clear cached data corresponding to the cached identifier in the target application according to the preset operation.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method for clearing the application cache according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the application cache according to the first aspect is implemented. Steps of the cleanup method.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect The steps of the method for cleaning the application cache.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • FIG. 1 is a schematic flowchart of a method for cleaning an application cache in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an interface for displaying a cache identifier of an application according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an interface for displaying a cache identifier of an application in another embodiment of the present application.
  • FIG. 4 is a schematic diagram of an interface for displaying a cache type of an application in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface for displaying cache information of an application according to an embodiment of the present application.
  • FIG. 6 is a schematic interface diagram of a method for clearing an application cache according to an embodiment of the present application.
  • FIG. 7 is a schematic interface diagram of a method for cleaning application cache in another embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an application cache cleaning device according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a schematic flowchart of a method for cleaning an application cache in an embodiment of the present application.
  • the method of Figure 1 may include:
  • S102 Receive a preset operation for the cache identifier displayed on the application icon of the target application.
  • the cache identifier is used to identify cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application.
  • the cache type may include picture cache, video cache, voice cache, other caches generated when the application is running (hereinafter referred to as other caches), and the like.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • the cache identifier corresponding to each cache information can be displayed on the application icon of the corresponding application through steps A1-A2:
  • Step A1 Acquire cache information of each application on the electronic device.
  • the application icons of each application may be arranged on the screen paging of the electronic device according to a preset arrangement factor.
  • the preset arrangement factor includes: the total cache size, the cache size corresponding to each cache type, and the like.
  • the application icons of each application can be arranged in the order of application A, application B, and application C to Screen paging for electronic devices.
  • the applications are arranged according to the cache size corresponding to the image cache. If the cache size corresponding to the image cache of each application is in the following order: application A > application B > application C, then application A can be arranged according to the cache size corresponding to the image cache. , Application B, and Application C in the order of arranging the application icons of each application to the screen paging of the electronic device.
  • the application icons of each application can be rearranged to each screen paging of the electronic device according to the order originally set by the user.
  • the application icons of each application are arranged on the screen paging of the electronic device according to the preset arrangement factor, so that the user can intuitively see the cache size of each application , which is beneficial for users to preferentially process applications with large caches, which improves the cleaning efficiency of application caches.
  • Step A2 If the cache information satisfies the preset condition, display the cache identifier corresponding to each cache information on the application icon of the corresponding application according to the preset display method.
  • the preset condition may be a preset threshold of the cache size, and the cache identifier may be in the form of a circular corner mark.
  • the cache information of each application on the electronic device is acquired, and when the cache information satisfies a preset condition, the cache identifier corresponding to each cache information is displayed on the application icon of the corresponding application according to the preset display method, The user can see the cache information of each application at a glance, and it is convenient for the user to clean the cache data of each application.
  • a cache identifier corresponding to the total cache size is displayed in the first position on the application icon.
  • the first position may be any position on the application icon.
  • the first position may be the upper left corner, the upper right corner, and the midpoint of the upper side of the application icon.
  • the first position may be any point on the circumference of the application icon, or the like.
  • the shape of the application icon is a rectangle, and the first position is the upper right corner of the application icon, as shown in Figure 2, for application A with a total cache size of 20M and application B with a total cache size of 10M , can be arranged to the screen paging of the electronic device in the order of application A and application B, and the cache identifiers 20M and 10M corresponding to the total cache size are displayed in the upper right corners of application A and application B respectively.
  • the cache identifier corresponding to the total cache size is displayed on the application icon The third position on the corresponding to the second cache type.
  • the cache types include pictures, videos, voices and others
  • the shape of the application icon is a rectangle
  • the third position corresponding to the picture cache is the upper left corner of the application icon
  • the third position corresponding to the video cache is the application In the upper right corner of the icon
  • the third position corresponding to the voice cache is the lower right corner of the application icon
  • the third position corresponding to other caches is the lower left corner of the application icon.
  • the cache size corresponding to the image cache is 10M
  • the cache size corresponding to the video cache is 6M
  • the cache sizes corresponding to the voice cache and other caches are 2M respectively
  • the cache identifiers corresponding to the first cache types are displayed on the icon on the application icon respectively. each second position.
  • the number of the second locations is not limited, and the number of the second locations may be determined according to the number of cache types. As shown in FIG. 3 , for an application icon whose shape is a rectangle, if there are 8 cache types, 8 second positions can be set on the application icon. If the cache sizes corresponding to two or more first cache types are all greater than or equal to the second preset threshold, the cache identifiers corresponding to the first cache types can be sorted according to the order of the cache sizes corresponding to the first cache types. are displayed at the second positions on the application icon respectively. The cache identifiers corresponding to the first cache types can also be displayed according to the preset cache types corresponding to the second positions.
  • the upper left corner of the rectangular application icon can be preset to display the cache ID corresponding to the image cache, and the upper right corner displays the cache ID corresponding to the video cache, then when the size of the cache corresponding to the image cache is greater than or equal to the second preset threshold, the image cache The corresponding cache identifier is displayed in the upper left corner of the application icon, and when the size of the cache corresponding to the video cache is greater than or equal to the second preset threshold, the cache identifier corresponding to the video cache is displayed in the upper right corner of the application icon.
  • the preset size of the cache corresponding to the cache type corresponding to the cache identifiers displayed in sequence at the top corners of the rectangular icon in a clockwise direction starting from the upper left corner of the rectangular application icon.
  • the cache size corresponding to each first cache type is: other cache > picture cache > video cache > second preset threshold
  • the cache ID corresponding to the other cache is displayed in the upper left corner of the application icon
  • the image The cache ID corresponding to the cache is displayed in the upper right corner of the application icon
  • the cache ID corresponding to the video cache is displayed in the lower right corner of the application icon.
  • the user can be more specific about the cache information of each application, and it is convenient for the user to select the cache data to be cleaned, thereby improving the performance of the user. the user experience.
  • the corresponding cache data in the target application may be cleared.
  • the corresponding cache data in the multiple applications can be cleared. Details are given below.
  • the preset operation on the cache identifier displayed on the application icon of the target application may include: a click operation on the cache identifier corresponding to the total cache size. All cached data in the target application can be cleared according to the above preset operations.
  • multiple cache types corresponding to the target application can also be displayed. Cache data corresponding to the third cache type in the target application.
  • the selection operation for the third cache type among the multiple cache types may be received first, and then the cache information corresponding to the third cache type is displayed, and after receiving the above-mentioned During the clearing operation of the cache information, the cache data corresponding to the third cache type in the target application is cleared.
  • the click operation on the cache ID corresponding to the total cache size can be a click operation on 20M on application A in Figure 2.
  • the target application is displayed in a floating display on the right side of application A.
  • the cache corresponding to the image cache is displayed Information: picture cache 5M/number of pictures 10/clear the picture cache, when receiving the clearing operation of the picture cache (that is, receiving the click operation of "clearing the picture cache” in Figure 5), clear the pictures and pictures in application A Cache the corresponding cached data.
  • all the cached data in each application can be cleared, or the cached data corresponding to the third cache type can be cleared, providing the user with various types of clearing the cache.
  • the data method is convenient for users to perform corresponding operations according to their needs, thereby clearing the corresponding cached data and improving the user experience.
  • the preset operation on the cache logo displayed on the application icon of the target application may include: a click operation on the cache logo displayed on the second position. According to the preset correspondence between the second position on each application icon and each cache type, the fourth cache type corresponding to the clicked cache ID can be determined, and the cache data corresponding to the fourth cache type in the target application can be cleared. .
  • the cache data corresponding to the cache type corresponding to the second position in the target application can be cleared, which improves the convenience of clearing the cache data in the application.
  • the user experience is improved.
  • the target application may include a first application and a second application
  • the preset operation on the cache identifier displayed on the application icon of the target application may include: moving the cache identifier displayed on the application icon of the first application to at the fourth position on the application icon of the second application.
  • a cache ID is displayed at the fourth position, according to the above preset operation, the cache data corresponding to the moved cache ID in the first application can be cleared, and the cache ID corresponding to the cache ID displayed at the fourth position in the second application can be cleared. cached data. If no cache identifier is displayed at the fourth position, according to the above preset operation, only the cache data corresponding to the moved cache identifier in the first application is cleared.
  • the positions of application A and application B on the screen paging of the electronic device are as shown in Figure 6, the upper left corner of the application icon of application A displays the cache ID corresponding to the image cache, and the upper right corner of the application icon of application B displays the corresponding image cache
  • the lower right corner of the application icon of Application B displays the cache ID corresponding to the video cache, and the arrow in the figure is the movement track of the cache ID. If the cache logo displayed in the upper left corner of the application icon of application A is moved to the upper right corner of the application icon of application B, the cached data corresponding to the image caches in application A and application B respectively are cleared. If the cache ID displayed in the upper left corner of the application icon of application A is moved to the lower right corner of the application icon of application B, the cached data corresponding to the picture cache in application A and the cached data corresponding to the video cache in application B are cleared.
  • the cached data corresponding to the cached identifiers in the two applications can be cleared at the same time, which improves the convenience of clearing the cached data in the applications, thereby improving the user's sense of use experience.
  • the target application may include a third application, a fourth application, and at least one fifth application
  • the preset operation on the cache identifier displayed on the application icon of the target application may include: within a preset duration, using the first
  • the application icon of the third application is the starting point of the sliding operation, and it passes through at least one application icon of the fifth application in sequence, and finally slides to the position of the cache identifier displayed on the application icon of the fourth application.
  • all cached data in the third application, the fourth application and the fifth application can be cleared.
  • the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation can also be determined, and the third application, the fourth application and the fifth application corresponding to the fifth cache type can be cleared. cached data.
  • the positions of application A, application B, application C, application D, and application E on the screen paging of the electronic device are shown in Figure 7.
  • the cache identifier corresponding to the picture cache displayed in the upper left corner of the application icon of application A is Swipe the starting point and pass through the cache IDs corresponding to other caches displayed in the upper right corner of the application icon of application B, the cache ID corresponding to the video cache displayed in the lower right corner of the application icon of application C, and the video displayed in the lower right corner of the application icon of application D.
  • the cache ID corresponding to the cache is finally slid to the position of the cache ID corresponding to the voice cache displayed in the lower left corner of the application icon of application E, and the arrow in the figure is the sliding track.
  • the cache type corresponding to the cache identifier displayed in the lower left corner of the application icon of application E is a voice cache, and the caches corresponding to the voice cache in application A, application B, application C, application D and application E are cleared. data.
  • the target application may include a third application, a fourth application, and at least one fifth application
  • the preset operation on the cache identifier displayed on the application icon of the target application may further include: within a preset time period,
  • the cache logo displayed on the application icon of the third application is the starting point of sliding, and it passes through at least one cache logo displayed on the application icon of the fifth application in sequence, and finally slides to the position of the cache logo displayed on the application icon of the fourth application. operate.
  • the sixth cache type corresponding to the cache identifier corresponding to the sliding start point of the sliding operation can be determined, and the cache data corresponding to the sixth cache type in the third application, the fourth application and the fifth application can be cleared.
  • the cache type corresponding to the cache ID displayed in the upper left corner of the application icon of application A is image cache, and the cache data corresponding to the image cache in application A, application B, application C, application D, and application E are cleared. .
  • the seventh cache type corresponding to the cache identifier corresponding to any sliding middle point of the sliding operation it is also possible to determine the seventh cache type corresponding to the cache identifier corresponding to any sliding middle point of the sliding operation, and clear the cache corresponding to the seventh cache type in the third application, the fourth application and the fifth application data.
  • the cache type corresponding to the cache ID displayed in the upper right corner of the app icon of app B is other cache, and the cache data corresponding to other caches in app A, app B, app C, app D, and app E can be cleared. .
  • the cached data corresponding to the cached identifiers in multiple applications can be cleared at the same time, which improves the convenience of clearing the cached data in the applications, thereby improving the user's sense of use experience.
  • FIG. 8 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • the electronic device is a mobile phone
  • the cache identifier corresponding to the total cache size of each application on the mobile phone is displayed in the first position on the application icon, as shown in FIG. 2 .
  • the method of FIG. 8 may include:
  • S802 Display multiple cache types corresponding to the target application according to the click operation on the cache identifier corresponding to the total cache size.
  • all cache data in the target application can also be cleared.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied in the process of clearing the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • FIG. 9 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • the electronic device is a mobile phone
  • the cache identifiers corresponding to each cache type of each application on the mobile phone are respectively displayed in the second position on the application icon, as shown in FIG. 6 .
  • the method of FIG. 9 may include:
  • S901 Receive a moving operation of moving the cache identifier displayed on the application icon of the first application to a fourth position on the application icon of the second application.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • FIG. 10 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
  • the electronic device is a mobile phone
  • the cache identifiers corresponding to each cache type of each application on the mobile phone are respectively displayed in the second position on the application icon, as shown in FIG. 7 .
  • the method of FIG. 10 may include:
  • S1001 Receive a sliding movement within a preset time period, taking the application icon of the third application as the starting point of sliding, passing through at least one application icon of the fifth application in sequence, and finally sliding to the position of the cache identifier displayed on the application icon of the fourth application. operate.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • the execution body may be an application cache cleaning device, or a control module in the application cache cleaning device for executing the application cache cleaning method.
  • the device for cleaning application caches performed by the application cache cleaning method is used as an example to describe the device for cleaning application caches provided by the embodiments of the present application.
  • FIG. 11 is a schematic structural diagram of an application cache cleaning device according to an embodiment of the present application.
  • the cleaning device for the application cache may include:
  • the receiving module 1110 is configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, and the corresponding cache types respectively. cache size;
  • the clearing module 1120 is configured to clear the cached data corresponding to the cached identifier in the target application according to a preset operation.
  • the device for cleaning the application cache further includes:
  • an acquisition module used to acquire cache information of each application on the electronic device
  • the display module is configured to display the cache identifier corresponding to each cache information on the application icon of the corresponding application according to the preset display method if the cache information satisfies the preset condition.
  • the presentation module includes:
  • a first display unit configured to display the cache identifier corresponding to the total cache size at the first position on the application icon if the total cache size is greater than or equal to the first preset threshold;
  • the second display unit is configured to display the cache identifiers corresponding to the first cache types on the application icon if the cache size corresponding to at least one of the first cache types is greater than or equal to the second preset threshold. each second position.
  • the first display unit is specifically used for:
  • the cache ID corresponding to the total cache size is displayed on the application icon in the second cache The third position corresponding to the type.
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier corresponding to the total cache size;
  • Cleanup module 1120 includes:
  • a first clearing unit used to clear all cached data in the target application
  • the first execution unit is used to display multiple cache types corresponding to the target application; when receiving a clearing operation for a third cache type in the multiple cache types, clear cache data corresponding to the third cache type in the target application.
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier displayed on the second position;
  • Cleanup module 1120 includes:
  • a determining unit configured to determine a fourth cache type corresponding to the clicked cache identifier according to the preset correspondence between each second position and each cache type;
  • the second clearing unit is configured to clear cache data corresponding to the fourth cache type in the target application.
  • the target application includes a first application and a second application; the preset operation on the cache identifier displayed on the application icon of the target application includes: moving the cache identifier displayed on the application icon of the first application to the second application at the fourth position on the application icon of the application;
  • Cleanup module 1120 includes:
  • the third clearing unit is used for clearing the cached data corresponding to the moved cached logo in the first application if the cached logo is displayed on the fourth position; and, to clear the cached logo displayed at the fourth position in the second application corresponding cache data.
  • the target application includes a third application, a fourth application, and at least one fifth application;
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: within a preset period of time, using the third application
  • the application icon is the starting point of sliding, passes through at least one application icon of the fifth application in sequence, and finally slides to the sliding operation at the position of the cache identification displayed on the application icon of the fourth application;
  • Cleanup module 1120 includes:
  • a fourth clearing unit configured to clear all cached data in the third application, the fourth application and the fifth application
  • the second execution unit is configured to determine the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation; clear the cache data corresponding to the fifth cache type in the third application, the fourth application and the fifth application.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, the device does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the displayed cache identifier can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • the device for cleaning the application cache in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for cleaning the application cache in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the device for cleaning application cache provided by the embodiment of the present application can implement each process implemented by the embodiments of the method for cleaning application cache in FIG. 1 to FIG. 10 .
  • an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • an electronic device 1200 including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • the program or instruction is executed by the processor 1201
  • each process of the above-mentioned embodiment of the application cache cleaning method is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
  • the electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310, etc. part.
  • the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1310 is configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, each cache type corresponding cache sizes; according to the preset operation, clear the cache data corresponding to the cache identifier in the target application.
  • the processor 1310 is further configured to obtain the cache information of each application on the electronic device; if the cache information satisfies the preset condition, the cache identifier corresponding to each cache information is displayed in the corresponding application according to the preset display method. on the app icon.
  • the processor 1310 is further configured to display the cache identifier corresponding to the total cache size in the first position on the application icon if the total cache size is greater than or equal to the first preset threshold; If the cache size corresponding to at least one of the first cache types is greater than or equal to the second preset threshold, the cache identifiers corresponding to the first cache types are displayed in the second positions on the application icon respectively.
  • the processor 1310 is further configured to, if the total cache size is greater than or equal to the first preset threshold, and the cache size corresponding to the second cache type in each cache type accounts for the largest proportion, then store the cache size corresponding to the total cache size. Identifies a third location displayed on the application icon corresponding to the second cache type.
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier corresponding to the total cache size; the processor 1310 is further configured to clear all cache data in the target application; or , displaying multiple cache types corresponding to the target application; when receiving a clearing operation for the third cache type in the multiple cache types, clear the cache data corresponding to the third cache type in the target application.
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier displayed on the second position; the processor 1310 is further configured to perform the operation according to each preset second position and The correspondence between the cache types is determined, and the fourth cache type corresponding to the clicked cache identifier is determined; the cache data corresponding to the fourth cache type in the target application is cleared.
  • the target application includes a first application and a second application
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: moving the cache identifier displayed on the application icon of the first application to the cache identifier displayed on the application icon of the second application. at the fourth position on the application icon; the processor 1310 is further configured to clear the cached data corresponding to the moved cached ID in the first application if the cached ID is displayed on the fourth position; and, clear the cached data in the second application Cache data corresponding to the cache identifier displayed at the fourth position.
  • the target application includes a third application, a fourth application, and at least one fifth application;
  • the preset operation on the cache identifier displayed on the application icon of the target application includes: within a preset period of time, using the application of the third application The icon is the starting point of sliding, and it passes through at least one application icon of the fifth application in sequence, and finally slides to the position of the cache identification displayed on the application icon of the fourth application;
  • the processor 1310 is also used for clearing the third application, the first All cached data in the fourth application and the fifth application; or, determine the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation; clear the third application, the fourth application and the fifth application corresponding to the fifth cache type cached data.
  • the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify cache information such as the total cache size, cache type, cache size corresponding to each cache type, etc. of the target application, the electronic device does not need to install a third-party application for clearing the cache.
  • the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
  • the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
  • the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1307 includes a touch panel 13071 and other input devices 13072 .
  • the touch panel 13071 is also called a touch screen.
  • the touch panel 13071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing application cache cleaning method embodiment is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above method for cleaning application caches In order to avoid repetition, the details are not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种应用缓存的清理方法、装置、电子设备及介质,属于通信技术领域。能够解决现有技术对应用的缓存数据的清理过程繁琐、清理效率低的问题。该方法包括:接收对目标应用的应用图标上展示的缓存标识的预设操作;缓存标识用于标识以下至少一项缓存信息:目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小;根据预设操作,清除目标应用中与缓存标识对应的缓存数据。该技术方案仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。

Description

应用缓存的清理方法、装置、电子设备及介质
本申请要求2020年11月26日提交在中国专利局、申请号为202011348294.9、发明名称为“应用缓存的清理方法、装置、电子设备及介质”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请属于通信技术领域,具体涉及一种应用缓存的清理方法、装置、电子设备及介质。
背景技术
随着互联网的发展,应用软件的种类和数量越来越多,用户能够根据自身需求在电子设备上下载各种应用。随着用户下载的应用越来越多,使用各应用的时间越来越长,导致各应用的缓存数据占用了电子设备中较多的存储空间。
为释放电子设备的存储空间,现有技术中一般采用空间清除应用、垃圾清除应用等清理缓存的应用,但由于上述的清理缓存的应用也需占用电子设备的存储空间,因此会耗费电子设备的存储资源,影响电子设备的性能,并且上述清理缓存的应用在清理缓存时需要对各待处理的应用进行各种统计、查询等操作,不仅操作繁琐、处理效率低,而且需要用户等待时间较长。
发明内容
本申请实施例的目的是提供一种应用缓存的清理方法、装置、电子设备及介质,能够解决现有技术对应用的缓存数据的清理过程繁琐、清理效率低的问题。
第一方面,本申请实施例提供了一种应用缓存的清理方法,包括:
接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;
根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
第二方面,本申请实施例提供了一种应用缓存的清理装置,包括:
接收模块,用于接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;
清除模块,用于根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的应用缓存的清理方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的应用缓存的清理方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的应用缓存的清理方法的步骤。
在本申请实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该技术方案无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
附图说明
图1是本申请的一个实施例中一种应用缓存的清理方法的示意性流程图。
图2是本申请的一个实施例中一种展示应用的缓存标识的界面示意图。
图3是本申请的另一个实施例中一种展示应用的缓存标识的界面示意图。
图4是本申请的一个实施例中一种展示应用的缓存类型的界面示意图。
图5是本申请的一个实施例中一种展示应用的缓存信息的界面示意图。
图6是本申请的一个实施例中一种应用缓存的清理方法的界面示意图。
图7是本申请的另一个实施例中一种应用缓存的清理方法的界面示意图。
图8是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。
图9是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。
图10是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。
图11是本申请的一个实施例中一种应用缓存的清理装置的结构示意图。
图12是本申请的一个实施例的一种电子设备的结构示意图。
图13为实现本申请各个实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的应用缓存的清理方法进行详细地说明。
图1是本申请的一个实施例中一种应用缓存的清理方法的示意性流程图。图1的方法可包括:
S102,接收对目标应用的应用图标上展示的缓存标识的预设操作。
其中,缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息。缓存类型可包括图片缓存、视频缓存、语音缓存、在应用运行时产生的其他缓存(下面简称为其他缓存)等。
S104,根据预设操作,清除目标应用中与缓存标识对应的缓存数据。
在本申请实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应 用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该技术方案无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
在一个实施例中,接收对目标应用的应用图标上展示的缓存标识的预设操作之前,可通过步骤A1-A2将各缓存信息对应的缓存标识展示在对应的应用的应用图标上:
步骤A1、获取电子设备上的各应用的缓存信息。
在一个实施例中,获取电子设备上的各应用的缓存信息之后,可将各应用的应用图标按照预设排列因子排列至电子设备的屏幕分页。其中,预设排列因子包括:总缓存大小、各缓存类型分别对应的缓存大小等。
例如,针对电子设备上的各应用,假设各应用的总缓存大小依次为:应用A>应用B>应用C,那么可按照应用A、应用B、应用C的顺序将各应用的应用图标排列至电子设备的屏幕分页。
再例如,针对电子设备上的各应用,假设按照图片缓存对应的缓存大小排列各应用,若各应用的图片缓存对应的缓存大小依次为:应用A>应用B>应用C,那么可按照应用A、应用B、应用C的顺序将各应用的应用图标排列至电子设备的屏幕分页。
在根据预设操作执行对各应用中缓存标识对应的缓存数据的清除操作之后,各应用的应用图标可按照用户原先设定的顺序,重新排列至电子设备的各屏幕分页。
本实施例中,通过在获取电子设备上的各应用的缓存信息之后,将各应用的应用图标按照预设排列因子排列至电子设备的屏幕分页,使得用户能够直观地看出各应用的缓存大小,有利于用户对缓存较大的应用优先进行处理,提高了应用缓存的清理效率。
步骤A2、若缓存信息满足预设条件,则根据预设展示方式,将各缓存信息对应的缓存标识展示在对应的应用的应用图标上。
其中,预设条件可为缓存大小的预设阈值,缓存标识的形式可为圆形角标。本实施例中,通过获取电子设备上的各应用的缓存信息,并在缓存信息满足预设条件时,根据预设 展示方式将各缓存信息对应的缓存标识展示在对应的应用的应用图标上,使得用户对各应用的缓存信息一目了然,方便用户对各应用的缓存数据进行清理。
在一个实施例中,若总缓存大小大于或等于第一预设阈值,则将总缓存大小对应的缓存标识展示在应用图标上的第一位置。
其中,第一位置可为应用图标上的任意一个位置,例如,对于形状为矩形的应用图标,第一位置可为应用图标的左上角、右上角、上边的中点等。对于形状为圆形的应用图标,第一位置可为应用图标的圆周上的任意一点等。
假设第一预设阈值为8M,应用图标的形状为矩形,第一位置为应用图标的右上角,如图2所示,针对总缓存大小为20M的应用A、总缓存大小为10M的应用B,可按照应用A、应用B的顺序排列至电子设备的屏幕分页,并将总缓存大小对应的缓存标识20M、10M分别展示在应用A、应用B的右上角。
在一个实施例中,若总缓存大小大于或等于第一预设阈值、且各缓存类型中的第二缓存类型对应的缓存大小占比最大,则将总缓存大小对应的缓存标识展示在应用图标上的与第二缓存类型对应的第三位置。
假设第一预设阈值为8M,缓存类型包括图片、视频、语音和其他,应用图标的形状为矩形,图片缓存对应的第三位置为应用图标的左上角,视频缓存对应的第三位置为应用图标的右上角,语音缓存对应的第三位置为应用图标的右下角,其他缓存对应的第三位置为应用图标的左下角。若应用A的总缓存大小为20M,图片缓存对应的缓存大小为10M,视频缓存对应的缓存大小为6M,语音缓存和其他缓存对应的缓存大小分别为2M,可确定出,图片缓存对应的缓存大小占比最大,那么,可将总缓存大小对应的缓存标识20M展示在应用图标的左上角。
在一个实施例中,若各缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各第一缓存类型对应的缓存标识分别展示在应用图标上的各第二位置。
其中,对于第二位置的数量不作限定,根据缓存类型的数量可确定第二位置的数量。如图3所示,对于形状为矩形的应用图标,若缓存类型存在8种,则在应用图标上可设置8个第二位置。若存在2种及以上的第一缓存类型对应的缓存大小均大于或等于第二预设阈 值,可按照各第一缓存类型对应的缓存大小的顺序,将各第一缓存类型分别对应的缓存标识分别展示在应用图标上的各第二位置。也可根据预先设定的各第二位置分别对应的缓存类型,展示各第一缓存类型对应的缓存标识。
例如,可预设矩形应用图标的左上角展示图片缓存对应的缓存标识,右上角展示视频缓存对应的缓存标识,则在图片缓存对应的缓存大小大于或等于第二预设阈值时,将图片缓存对应的缓存标识展示在应用图标的左上角,在视频缓存对应的缓存大小大于或等于第二预设阈值时,将视频缓存对应的缓存标识展示在应用图标的右上角。
再例如,针对电子设备中的各应用,预设以矩形应用图标的左上角为起点、沿顺时针方向、在矩形图标的各顶角上依次展示的缓存标识对应的缓存类型所对应的缓存大小逐渐减小,若各第一缓存类型对应的缓存大小依次为:其他缓存>图片缓存>视频缓存>第二预设阈值,则将其他缓存对应的缓存标识展示在应用图标的左上角,将图片缓存对应的缓存标识展示在应用图标的右上角,将视频缓存对应的缓存标识展示在应用图标的右下角。
本实施例中,通过将各缓存信息对应的缓存标识分别展示在对应的应用的应用图标上的设定位置,使得用户能够更加明确各应用的缓存信息,便于用户选择需清理的缓存数据,提高了用户的使用体验感。
根据对目标应用的应用图标上展示的缓存标识执行的不同预设操作,可清除目标应用中相应的缓存数据。根据对多个应用的应用图标上展示的缓存标识执行的不同预设操作,可清除多个应用中相应的缓存数据。下面进行详细介绍。
在一个实施例中,对目标应用的应用图标上展示的缓存标识的预设操作可包括:对总缓存大小对应的缓存标识的点击操作。根据上述预设操作可清除目标应用中的所有缓存数据。
本实施例中,根据对总缓存大小对应的缓存标识的点击操作,还可展示目标应用对应的多个缓存类型,在接收到对多个缓存类型中的第三缓存类型的清除操作时,清除目标应用中与第三缓存类型对应的缓存数据。
其中,在展示目标应用对应的多个缓存类型之后,可首先接收对多个缓存类型中的第三缓存类型的选择操作,然后,展示第三缓存类型对应的缓存信息,并在接收到对上述缓存信息的清除操作时,清除目标应用中与第三缓存类型对应的缓存数据。
例如,对总缓存大小对应的缓存标识的点击操作,可为对图2中应用A上的20M的点击操作,执行点击操作后,如图4所示,在应用A的右侧悬浮显示目标应用对应的多个缓存类型,包括图片缓存、视频缓存、其他缓存、清空所有缓存,在接收到对图4中的“图片缓存”的选择操作时,如图5所示,展示图片缓存对应的缓存信息:图片缓存5M/图片数量10张/清空图片缓存,在接收到对图片缓存的清除操作(即接收到对图5中的“清空图片缓存”的点击操作)时,清除应用A中与图片缓存对应的缓存数据。
本实施例中,根据对各应用的总缓存大小对应的缓存标识的点击操作,可清除各应用中的所有缓存数据,或清除第三缓存类型对应的缓存数据,为用户提供了多种清除缓存数据的方式,便于用户根据需求执行相应的操作,从而清除相应的缓存数据,提高了用户的使用体验感。
在一个实施例中,对目标应用的应用图标上展示的缓存标识的预设操作可包括:对第二位置上展示的缓存标识的点击操作。根据预设的各应用图标上的第二位置和各缓存类型之间的对应关系,可确定被点击的缓存标识对应的第四缓存类型,并清除目标应用中与第四缓存类型对应的缓存数据。
本实施例中,根据对第二位置上展示的缓存标识的点击操作,可清除目标应用中与该第二位置对应的缓存类型对应的缓存数据,提高了清除应用中的缓存数据的便捷性,从而提高了用户的使用体验感。
在一个实施例中,目标应用可包括第一应用和第二应用,对目标应用的应用图标上展示的缓存标识的预设操作可包括:将第一应用的应用图标上展示的缓存标识移动至第二应用的应用图标上的第四位置处。
若第四位置上展示有缓存标识,则根据上述预设操作,可清除第一应用中与被移动的缓存标识对应的缓存数据,以及清除第二应用中与第四位置处展示的缓存标识对应的缓存数据。若第四位置上未展示有缓存标识,则根据上述预设操作,仅清除第一应用中与被移动的缓存标识对应的缓存数据。
假设,应用A、应用B在电子设备的屏幕分页上的位置如图6所示,应用A的应用图标的左上角展示图片缓存对应的缓存标识,应用B的应用图标的右上角展示图片缓存对应的缓存标识,应用B的应用图标的右下角展示视频缓存对应的缓存标识,图中箭头为缓存 标识的移动轨迹。若将应用A的应用图标的左上角展示的缓存标识移动至应用B的应用图标的右上角,则清除应用A和应用B中图片缓存分别对应的缓存数据。若将应用A的应用图标的左上角展示的缓存标识移动至应用B的应用图标的右下角,则清除应用A中图片缓存对应的缓存数据,以及清除应用B中视频缓存对应的缓存数据。
本实施例中,能够同时清除2个应用中缓存标识对应的缓存数据,提高了清除应用中的缓存数据的便捷性,从而提高了用户的使用体验感。
在一个实施例中,目标应用可包括第三应用、第四应用和至少一个第五应用,对目标应用的应用图标上展示的缓存标识的预设操作可包括:在预设时长内,以第三应用的应用图标为滑动起点,依次经过至少一个第五应用的应用图标,最终滑动至第四应用的应用图标上展示的缓存标识的位置处的滑动操作。
根据上述预设操作,可清除第三应用、第四应用和第五应用中的所有缓存数据。本实施例中,根据上述预设操作,还可确定滑动操作的滑动终点对应的缓存标识对应的第五缓存类型,并清除第三应用、第四应用和第五应用中与第五缓存类型对应的缓存数据。
例如,应用A、应用B、应用C、应用D、应用E在电子设备的屏幕分页上的位置如图7所示,若以应用A的应用图标的左上角展示的图片缓存对应的缓存标识为滑动起点,依次经过应用B的应用图标的右上角展示的其他缓存对应的缓存标识,应用C的应用图标的右下角展示的视频缓存对应的缓存标识,应用D的应用图标的右下角展示的视频缓存对应的缓存标识,最终滑动至应用E的应用图标的左下角展示的语音缓存对应的缓存标识的位置处,图中箭头为滑动轨迹。
根据本实施例,可确定应用E的应用图标的左下角展示的缓存标识对应的缓存类型为语音缓存,并清除应用A、应用B、应用C、应用D、应用E中与语音缓存对应的缓存数据。
在一个实施例中,目标应用可包括第三应用、第四应用和至少一个第五应用,对目标应用的应用图标上展示的缓存标识的预设操作还可包括:在预设时长内,以第三应用的应用图标上展示的缓存标识为滑动起点,依次经过至少一个第五应用的应用图标上展示的缓存标识,最终滑动至第四应用的应用图标上展示的缓存标识的位置处的滑动操作。
根据上述预设操作,可确定滑动操作的滑动起点对应的缓存标识对应的第六缓存类型,并清除第三应用、第四应用和第五应用中与第六缓存类型对应的缓存数据。
沿用上述举例,可确定应用A的应用图标的左上角展示的缓存标识对应的缓存类型为图片缓存,并清除应用A、应用B、应用C、应用D、应用E中与图片缓存对应的缓存数据。
根据上述预设操作,还可确定滑动操作的任意一个滑动中间点对应的缓存标识对应的第七缓存类型,并清除第三应用、第四应用和第五应用中与第七缓存类型对应的缓存数据。
沿用上述举例,可确定应用B的应用图标的右上角展示的缓存标识对应的缓存类型为其他缓存,并清除应用A、应用B、应用C、应用D、应用E中与其他缓存对应的缓存数据。
在上述实施例中,能够同时清除多个应用中缓存标识对应的缓存数据,提高了清除应用中的缓存数据的便捷性,从而提高了用户的使用体验感。
图8是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。本实施例中,电子设备为手机,手机上各应用的总缓存大小对应的缓存标识展示在应用图标上的第一位置,如图2所示。图8的方法可包括:
S801,接收对目标应用的应用图标上展示的总缓存大小对应的缓存标识的点击操作。
S802,根据对总缓存大小对应的缓存标识的点击操作,展示目标应用对应的多个缓存类型。
此外,根据对总缓存大小对应的缓存标识的点击操作,还可清除目标应用中的所有缓存数据。
S803,在接收到对多个缓存类型中的第三缓存类型的选择操作时,展示第三缓存类型对应的缓存信息。
S804,在接收到对第三缓存类型对应的缓存信息的清除操作时,清除目标应用中与第三缓存类型对应的缓存数据。
上述S801-S804的具体过程在上述实施例中已进行详细说明,此处不再赘述。
本实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该技术方案无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过 程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
图9是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。本实施例中,电子设备为手机,手机上各应用的各缓存类型分别对应的缓存标识分别展示在应用图标上的第二位置,如图6所示。图9的方法可包括:
S901,接收将第一应用的应用图标上展示的缓存标识移动至第二应用的应用图标上的第四位置处的移动操作。
S902,清除第一应用中与被移动的缓存标识对应的缓存数据;以及,清除第二应用中与第四位置处展示的缓存标识对应的缓存数据。
上述S901-S902的具体过程在上述实施例中已进行详细说明,此处不再赘述。
本实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该技术方案无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
图10是本申请的另一个实施例中一种应用缓存的清理方法的示意性流程图。本实施例中,电子设备为手机,手机上各应用的各缓存类型分别对应的缓存标识分别展示在应用图标上的第二位置,如图7所示。图10的方法可包括:
S1001,接收在预设时长内,以第三应用的应用图标为滑动起点,依次经过至少一个第五应用的应用图标,最终滑动至第四应用的应用图标上展示的缓存标识的位置处的滑动操作。
S1002,根据接收到的滑动操作,确定滑动操作的滑动终点对应的缓存标识对应的第五缓存类型。
S1003,清除第三应用、第四应用和第五应用中与第五缓存类型对应的缓存数据。
上述S1001-S1003的具体过程在上述实施例中已进行详细说明,此处不再赘述。
本实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预 设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该技术方案无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
需要说明的是,本申请实施例提供的应用缓存的清理方法,执行主体可以为应用缓存的清理装置,或者该应用缓存的清理装置中的用于执行应用缓存的清理方法的控制模块。本申请实施例中以应用缓存的清理装置执行应用缓存的清理方法为例,说明本申请实施例提供的应用缓存的清理装置。
图11是本申请的一个实施例中一种应用缓存的清理装置的结构示意图。请参考图11,应用缓存的清理装置可包括:
接收模块1110,用于接收对目标应用的应用图标上展示的缓存标识的预设操作;缓存标识用于标识以下至少一项缓存信息:目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小;
清除模块1120,用于根据预设操作,清除目标应用中与缓存标识对应的缓存数据。
在一个实施例中,应用缓存的清理装置还包括:
获取模块,用于获取电子设备上的各应用的缓存信息;
展示模块,用于若缓存信息满足预设条件,则根据预设展示方式,将各缓存信息对应的缓存标识展示在对应的应用的应用图标上。
在一个实施例中,展示模块包括:
第一展示单元,用于若总缓存大小大于或等于第一预设阈值,则将总缓存大小对应的缓存标识展示在应用图标上的第一位置;或者,
第二展示单元,用于若各缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各第一缓存类型对应的缓存标识分别展示在应用图标上的各第二位置。
在一个实施例中,第一展示单元具体用于:
若总缓存大小大于或等于第一预设阈值、且各缓存类型中的第二缓存类型对应的缓存大小占比最大,则将总缓存大小对应的缓存标识展示在应用图标上的与第二缓存类型对应的第三位置。
在一个实施例中,对目标应用的应用图标上展示的缓存标识的预设操作包括:对总缓存大小对应的缓存标识的点击操作;
清除模块1120包括:
第一清除单元,用于清除目标应用中的所有缓存数据;
或者,
第一执行单元,用于展示目标应用对应的多个缓存类型;在接收到对多个缓存类型中的第三缓存类型的清除操作时,清除目标应用中与第三缓存类型对应的缓存数据。
在一个实施例中,对目标应用的应用图标上展示的缓存标识的预设操作包括:对第二位置上展示的缓存标识的点击操作;
清除模块1120包括:
确定单元,用于根据预设的各第二位置和各缓存类型之间的对应关系,确定被点击的缓存标识对应的第四缓存类型;
第二清除单元,用于清除目标应用中与第四缓存类型对应的缓存数据。
在一个实施例中,目标应用包括第一应用和第二应用;对目标应用的应用图标上展示的缓存标识的预设操作包括:将第一应用的应用图标上展示的缓存标识移动至第二应用的应用图标上的第四位置处;
清除模块1120包括:
第三清除单元,用于若第四位置上展示有缓存标识,则清除第一应用中与被移动的缓存标识对应的缓存数据;以及,清除第二应用中与第四位置处展示的缓存标识对应的缓存数据。
在一个实施例中,目标应用包括第三应用、第四应用和至少一个第五应用;对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以第三应用的应用图标为滑动起点,依次经过至少一个第五应用的应用图标,最终滑动至第四应用的应用图标上展示的缓存标识的位置处的滑动操作;
清除模块1120包括:
第四清除单元,用于清除第三应用、第四应用和第五应用中的所有缓存数据;
或者,
第二执行单元,用于确定滑动操作的滑动终点对应的缓存标识对应的第五缓存类型;清除第三应用、第四应用和第五应用中与第五缓存类型对应的缓存数据。
在本申请实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该装置无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
本申请实施例中的应用缓存的清理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的应用缓存的清理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的应用缓存的清理装置能够实现图1至图10的应用缓存的清理方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图12所示,本申请实施例还提供一种电子设备1200,包括处理器1201,存储器1202,存储在存储器1202上并可在所述处理器1201上运行的程序或指令,该程序或指令被处理器1201执行时实现上述应用缓存的清理方法实施例的各个过程,且能达到相 同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图13为实现本申请各实施例的一种电子设备的硬件结构示意图。
该电子设备1300包括但不限于:射频单元1301、网络模块1302、音频输出单元1303、输入单元1304、传感器1305、显示单元1306、用户输入单元1307、接口单元1308、存储器1309、以及处理器1310等部件。
本领域技术人员可以理解,电子设备1300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1310,用于接收对目标应用的应用图标上展示的缓存标识的预设操作;缓存标识用于标识以下至少一项缓存信息:目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小;根据预设操作,清除目标应用中与缓存标识对应的缓存数据。
可选的,处理器1310,还用于获取电子设备上的各应用的缓存信息;若缓存信息满足预设条件,则根据预设展示方式,将各缓存信息对应的缓存标识展示在对应的应用的应用图标上。
可选的,处理器1310,还用于若总缓存大小大于或等于第一预设阈值,则将总缓存大小对应的缓存标识展示在应用图标上的第一位置;或者,若各缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各第一缓存类型对应的缓存标识分别展示在应用图标上的各第二位置。
可选的,处理器1310,还用于若总缓存大小大于或等于第一预设阈值、且各缓存类型中的第二缓存类型对应的缓存大小占比最大,则将总缓存大小对应的缓存标识展示在应用图标上的与第二缓存类型对应的第三位置。
可选的,对目标应用的应用图标上展示的缓存标识的预设操作包括:对总缓存大小对应的缓存标识的点击操作;处理器1310,还用于清除目标应用中的所有缓存数据;或者, 展示目标应用对应的多个缓存类型;在接收到对多个缓存类型中的第三缓存类型的清除操作时,清除目标应用中与第三缓存类型对应的缓存数据。
可选的,对目标应用的应用图标上展示的缓存标识的预设操作包括:对第二位置上展示的缓存标识的点击操作;处理器1310,还用于根据预设的各第二位置和各缓存类型之间的对应关系,确定被点击的缓存标识对应的第四缓存类型;清除目标应用中与第四缓存类型对应的缓存数据。
可选的,目标应用包括第一应用和第二应用;对目标应用的应用图标上展示的缓存标识的预设操作包括:将第一应用的应用图标上展示的缓存标识移动至第二应用的应用图标上的第四位置处;处理器1310,还用于若第四位置上展示有缓存标识,则清除第一应用中与被移动的缓存标识对应的缓存数据;以及,清除第二应用中与第四位置处展示的缓存标识对应的缓存数据。
可选的,目标应用包括第三应用、第四应用和至少一个第五应用;对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以第三应用的应用图标为滑动起点,依次经过至少一个第五应用的应用图标,最终滑动至第四应用的应用图标上展示的缓存标识的位置处的滑动操作;处理器1310,还用于清除第三应用、第四应用和第五应用中的所有缓存数据;或者,确定滑动操作的滑动终点对应的缓存标识对应的第五缓存类型;清除第三应用、第四应用和第五应用中与第五缓存类型对应的缓存数据。
在本申请实施例中,通过接收对目标应用的应用图标上展示的缓存标识的预设操作,根据预设操作清除目标应用中与缓存标识对应的缓存数据。由于缓存标识用于标识目标应用的总缓存大小、缓存类型、各缓存类型分别对应的缓存大小等缓存信息,因此,该电子设备无需安装用于清理缓存的第三方应用,仅根据用户对应用图标上展示的缓存标识执行的预设操作,即可实现清除应用缓存数据的目的,简化了清理应用缓存的处理步骤,提高了应用缓存的清理效率。并且,由于未额外下载上述第三方应用,因此,在对应用缓存的清理过程中不会额外占用电子设备的存储空间,能够避免对电子设备的性能产生影响的问题。
应理解的是,本申请实施例中,输入单元1304可以包括图形处理器(Graphics Processing Unit,GPU)13041和麦克风13042,图形处理器13041对在视频捕获模式或图像捕获模式 中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1306可包括显示面板13061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板13061。用户输入单元1307包括触控面板13071以及其他输入设备13072。触控面板13071,也称为触摸屏。触控面板13071可包括触摸检测装置和触摸控制器两个部分。其他输入设备13072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1309可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1310中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述应用缓存的清理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述应用缓存的清理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的 次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (21)

  1. 一种应用缓存的清理方法,包括:
    接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;
    根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
  2. 根据权利要求1所述的方法,其中,所述接收对目标应用的应用图标上展示的缓存标识的预设操作之前,所述方法还包括:
    获取电子设备上的各应用的缓存信息;
    若所述缓存信息满足预设条件,则根据预设展示方式,将各所述缓存信息对应的缓存标识展示在对应的所述应用的应用图标上。
  3. 根据权利要求2所述的方法,其中,所述若所述缓存信息满足预设条件,则根据预设展示方式,将各所述缓存信息对应的缓存标识展示在对应的所述应用的应用图标上,包括:
    若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置;或者,
    若各所述缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各所述第一缓存类型对应的所述缓存标识分别展示在所述应用图标上的各第二位置。
  4. 根据权利要求3所述的方法,其中,所述若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置,包括:
    若所述总缓存大小大于或等于所述第一预设阈值、且各所述缓存类型中的第二缓存类型对应的缓存大小占比最大,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的与所述第二缓存类型对应的第三位置。
  5. 根据权利要求3所述的方法,其中,所述对目标应用的应用图标上展示的缓存标识 的预设操作包括:对所述总缓存大小对应的所述缓存标识的点击操作;
    所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:
    清除所述目标应用中的所有缓存数据;
    或者,
    展示所述目标应用对应的多个所述缓存类型;在接收到对多个所述缓存类型中的第三缓存类型的清除操作时,清除所述目标应用中与所述第三缓存类型对应的缓存数据。
  6. 根据权利要求3所述的方法,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述第二位置上展示的所述缓存标识的点击操作;
    所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:
    根据预设的各所述第二位置和各所述缓存类型之间的对应关系,确定被点击的所述缓存标识对应的第四缓存类型;
    清除所述目标应用中与所述第四缓存类型对应的缓存数据。
  7. 根据权利要求3所述的方法,其中,所述目标应用包括第一应用和第二应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:将所述第一应用的应用图标上展示的所述缓存标识移动至所述第二应用的应用图标上的第四位置处;
    所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:
    若所述第四位置上展示有所述缓存标识,则清除所述第一应用中与被移动的所述缓存标识对应的缓存数据;以及,清除所述第二应用中与所述第四位置处展示的所述缓存标识对应的缓存数据。
  8. 根据权利要求3所述的方法,其中,所述目标应用包括第三应用、第四应用和至少一个第五应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以所述第三应用的应用图标为滑动起点,依次经过至少一个所述第五应用的应用图标,最终滑动至所述第四应用的应用图标上展示的所述缓存标识的位置处的滑动操作;
    所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:
    清除所述第三应用、所述第四应用和所述第五应用中的所有缓存数据;
    或者,
    确定所述滑动操作的滑动终点对应的所述缓存标识对应的第五缓存类型;清除所述第 三应用、所述第四应用和所述第五应用中与所述第五缓存类型对应的缓存数据。
  9. 一种应用缓存的清理装置,其中,包括:
    接收模块,用于接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;
    清除模块,用于根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
  10. 根据权利要求9所述的应用缓存的清理装置,其中,所述应用缓存的清理装置还包括:
    获取模块,用于获取电子设备上的各应用的缓存信息;
    展示模块,用于若缓存信息满足预设条件,则根据预设展示方式,将各缓存信息对应的缓存标识展示在对应的应用的应用图标上。
  11. 根据权利要求10所述的应用缓存的清理装置,其中,所述展示模块包括:
    第一展示单元,用于若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置;或者,
    第二展示单元,用于若各所述缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各所述第一缓存类型对应的所述缓存标识分别展示在所述应用图标上的各第二位置。
  12. 根据权利要求11所述的应用缓存的清理装置,其中,所述第一展示单元具体用于:
    若所述总缓存大小大于或等于所述第一预设阈值、且各所述缓存类型中的第二缓存类型对应的缓存大小占比最大,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的与所述第二缓存类型对应的第三位置。
  13. 根据权利要求11所述的应用缓存的清理装置,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述总缓存大小对应的所述缓存标识的点击操作;
    所述清除模块包括:
    第一清除单元,用于清除所述目标应用中的所有缓存数据;
    或者,
    第一执行单元,用于展示所述目标应用对应的多个所述缓存类型;在接收到对多个所述缓存类型中的第三缓存类型的清除操作时,清除所述目标应用中与所述第三缓存类型对应的缓存数据。
  14. 根据权利要求11所述的应用缓存的清理装置,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述第二位置上展示的所述缓存标识的点击操作;
    所述清除模块包括:
    确定单元,用于根据预设的各所述第二位置和各所述缓存类型之间的对应关系,确定被点击的所述缓存标识对应的第四缓存类型;
    第二清除单元,用于清除所述目标应用中与所述第四缓存类型对应的缓存数据。
  15. 根据权利要求11所述的应用缓存的清理装置,其中,所述目标应用包括第一应用和第二应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:将所述第一应用的应用图标上展示的所述缓存标识移动至所述第二应用的应用图标上的第四位置处;
    所述清除模块包括:
    第三清除单元,用于若所述第四位置上展示有所述缓存标识,则清除所述第一应用中与被移动的所述缓存标识对应的缓存数据;以及,清除所述第二应用中与所述第四位置处展示的所述缓存标识对应的缓存数据。
  16. 根据权利要求11所述的应用缓存的清理装置,其中,所述目标应用包括第三应用、第四应用和至少一个第五应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以所述第三应用的应用图标为滑动起点,依次经过至少一个所述第五应用的应用图标,最终滑动至所述第四应用的应用图标上展示的所述缓存标识的位置处的滑动操作;
    所述清除模块包括:
    第四清除单元,用于清除所述第三应用、所述第四应用和所述第五应用中的所有缓存数据;
    或者,
    第二执行单元,用于确定所述滑动操作的滑动终点对应的所述缓存标识对应的第五缓存类型;清除所述第三应用、所述第四应用和所述第五应用中与所述第五缓存类型对应的 缓存数据。
  17. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
  18. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
  19. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
  20. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-8任一项所述的方法。
  21. 一种清理设备,其中,包括所述清理设备被配置成用于执行如权利要求1-8任一项所述的应用缓存的清理方法。
PCT/CN2021/132688 2020-11-26 2021-11-24 应用缓存的清理方法、装置、电子设备及介质 Ceased WO2022111502A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011348294.9A CN112416201B (zh) 2020-11-26 2020-11-26 应用缓存的清理方法、装置、电子设备及介质
CN202011348294.9 2020-11-26

Publications (1)

Publication Number Publication Date
WO2022111502A1 true WO2022111502A1 (zh) 2022-06-02

Family

ID=74842521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132688 Ceased WO2022111502A1 (zh) 2020-11-26 2021-11-24 应用缓存的清理方法、装置、电子设备及介质

Country Status (2)

Country Link
CN (1) CN112416201B (zh)
WO (1) WO2022111502A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416201B (zh) * 2020-11-26 2022-05-20 维沃移动通信有限公司 应用缓存的清理方法、装置、电子设备及介质
CN114003593B (zh) * 2021-11-02 2024-08-13 北京搜房科技发展有限公司 缓存数据的清除方法及装置、存储介质及电子设备
CN114237443A (zh) * 2021-11-23 2022-03-25 维沃移动通信有限公司 应用管理方法、装置、电子设备和介质
CN115563001B (zh) * 2022-10-26 2026-04-28 唯品会(广州)软件有限公司 本地缓存工具类测试方法、装置、存储介质及计算机设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550128A (zh) * 2016-10-31 2017-03-29 努比亚技术有限公司 一种内存管理方法及终端
CN107357741A (zh) * 2017-06-05 2017-11-17 努比亚技术有限公司 一种应用管理方法、设备及计算机存储介质
CN108595263A (zh) * 2018-04-04 2018-09-28 维沃移动通信有限公司 一种应用缓存清理的方法及移动终端
US20180285270A1 (en) * 2017-03-28 2018-10-04 Bank Of America Corporation Real-time cache repair tool
CN112416201A (zh) * 2020-11-26 2021-02-26 维沃移动通信有限公司 应用缓存的清理方法、装置、电子设备及介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10116697B2 (en) * 2013-09-20 2018-10-30 Open Text Sa Ulc System and method for geofencing
CN104657147B (zh) * 2015-03-09 2018-10-12 联想(北京)有限公司 一种信息处理方法和装置
CN107562311A (zh) * 2017-08-18 2018-01-09 珠海市魅族科技有限公司 图标控制方法和装置、终端及可读存储介质
CN111796735B (zh) * 2020-06-29 2023-02-03 维沃移动通信(杭州)有限公司 应用程序控制方法、装置及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550128A (zh) * 2016-10-31 2017-03-29 努比亚技术有限公司 一种内存管理方法及终端
US20180285270A1 (en) * 2017-03-28 2018-10-04 Bank Of America Corporation Real-time cache repair tool
CN107357741A (zh) * 2017-06-05 2017-11-17 努比亚技术有限公司 一种应用管理方法、设备及计算机存储介质
CN108595263A (zh) * 2018-04-04 2018-09-28 维沃移动通信有限公司 一种应用缓存清理的方法及移动终端
CN112416201A (zh) * 2020-11-26 2021-02-26 维沃移动通信有限公司 应用缓存的清理方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN112416201A (zh) 2021-02-26
CN112416201B (zh) 2022-05-20

Similar Documents

Publication Publication Date Title
CN112416201B (zh) 应用缓存的清理方法、装置、电子设备及介质
CN108040288B (zh) 视频编辑方法、装置及智能移动终端
US20190095059A1 (en) Method and device for processing application icon and electronic apparatus
WO2022063022A1 (zh) 视频预览方法、装置及电子设备
CN112099707A (zh) 显示方法、装置和电子设备
CN112540740B (zh) 分屏显示方法、装置、电子设备和可读存储介质
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
WO2023005920A1 (zh) 分屏方法、装置及电子设备
CN112148178A (zh) 应用切换方法、装置、电子设备及可读存储介质
CN112083854A (zh) 应用程序的运行方法及装置
CN105183287A (zh) 显示处理方法及电子设备
CN112486444A (zh) 投屏方法、装置、设备和可读存储介质
WO2022068721A1 (zh) 截屏方法、装置及电子设备
CN113703634A (zh) 界面显示方法和装置
WO2022135290A1 (zh) 截屏方法、装置及电子设备
CN112836086A (zh) 一种视频处理方法、装置和电子设备
WO2023056977A1 (zh) 应用程序启动方法, 装置及电子设备
KR102926192B1 (ko) 메시지 상세 페이지의 표시 방법, 장치 및 전자 장치
WO2022089481A1 (zh) 信息处理方法、装置及电子设备
CN117992168A (zh) 一种显示控制方法、装置、存储介质及计算机设备
CN112764862A (zh) 应用程序的控制方法、装置及电子设备
CN112286615A (zh) 应用程序的信息显示方法及装置
CN111638828A (zh) 界面显示方法及装置
CN111666010B (zh) 应用显示方法及装置
WO2022228433A1 (zh) 信息处理方法、装置以及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21897003

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21897003

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.12.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21897003

Country of ref document: EP

Kind code of ref document: A1