Terminal data management method and device, storage medium and electronic device

By obtaining the write and delete data of the terminal device from the message queue and writing it to the storage space of the cache management application, the problem of difficulty in real-time monitoring of the cached data in the prior art is solved, and efficient data monitoring and manage.

CN119415350APending Publication Date: 2025-02-11QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411353697.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The prior art is difficult to monitor the cached data of terminal devices in real time, resulting in the inability to clean and manage data in a timely manner.

Method used

By obtaining the data written and deleted by the terminal device from the message queue, determining the target device identity, and writing the data to the target storage space of the cache management application, real-time monitoring and management of the cached data of the terminal device is realized.

Benefits of technology

Real-time monitoring of cached data of terminal devices is realized, monitoring efficiency is improved, cached data is cleaned in a timely manner, and the utilization rate of cache space is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415350A_ABST
    Figure CN119415350A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal data management method and device, a storage medium and an electronic device, and relates to the technical field of smart home, the terminal data management method comprises the steps that target data is acquired from a message queue, the target data comprises data written into a cache of a terminal device and / or data deleted from the cache of the terminal device by the terminal device, and the target data is stored in the message queue; the message queue is a message queue between a cache management application and terminal equipment; target equipment identification is determined according to the target data, the target equipment identification is used for identifying target equipment, and the target data is data in the target equipment; and writing the target data into a target storage space corresponding to the target device in the cache management application. By adopting the technical scheme, the problem that the cached data of the terminal equipment is difficult to monitor in real time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a terminal data management method and device, a storage medium, and an electronic device. Background Art

[0002] With the popularization of cloud computing and microservice architecture, the complexity of application systems is increasing, and local cache management has become one of the key technologies to improve system performance.

[0003] In the related technologies, the configuration, monitoring and maintenance of traditional cache libraries are usually scattered in various service nodes. The data cache is relatively scattered and lacks the ability of centralized management and dynamic optimization. When you need to view the data in the local cache, you need to log the data stored in the local cache to the console in the form of business service logging. By analyzing the logs, you can analyze the distribution of data in the current local cache. You cannot view the local cache data in real time, let alone monitor the cache data of the terminal device in real time.

[0004] With regard to the problem in related technologies that it is difficult to monitor cached data of terminal devices in real time, no effective solution has been proposed yet.

[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention

[0006] The embodiments of the present application provide a terminal data management method and device, a storage medium, and an electronic device to at least solve the problem that it is difficult to monitor the cached data of a terminal device in real time.

[0007] According to one aspect of an embodiment of the present application, a terminal data management method is provided, comprising: obtaining target data from a message queue, wherein the target data comprises: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device; determining a target device identifier based on the target data, wherein the target device identifier is used to identify a target device, and the target data is data in the target device; and writing the target data into a target storage space corresponding to the target device in the cache management application.

[0008] In an exemplary embodiment, the method also includes: when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, sending a first instruction to the target device through the cache management application; wherein the first instruction is used to instruct the target device to clean up the data stored in the cache of the target device according to preset rules, so that the amount of data stored in the cache of the target device is less than a second preset threshold, wherein the second preset threshold is less than or equal to the first preset threshold.

[0009] In an exemplary embodiment, the method further includes: when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, sending an alarm message through the cache management application, wherein the alarm message is used to remind to clean up the data stored in the cache of the target device.

[0010] In an exemplary embodiment, the method further includes: displaying the data stored in the target storage space through a display page; and sending a second instruction to the target device when first specified information is obtained through the display page, wherein the first specified information is information submitted by the target object after determining to delete the first specified data, the data stored in the target storage space includes the first specified data, and the second instruction is used to instruct the target device to delete the first specified data in the cache of the target device.

[0011] In an exemplary embodiment, the method further includes: displaying the data stored in the target storage space through a display page; and sending a third instruction to the target device when second specified information is obtained through the display page, wherein the second specified information is information submitted by the target object after determining to restore the second specified data, the data stored in the target storage space includes the second specified data, and the third instruction is used to instruct the target device to store the second specified data in the target device.

[0012] In an exemplary embodiment, the method also includes: when the third specified information is obtained through the cache management application, sending a fourth instruction to the target device; wherein the third specified information is information submitted by the target device when determining to trace back the data in the cache of the target device to a target historical moment, and the fourth instruction carries a target data set stored in the cache of the target device at the target historical moment, and the fourth instruction is used to instruct the target device to use the target data set to overwrite the data currently stored in the cache of the target device.

[0013] In an exemplary embodiment, the method also includes: obtaining configuration information through the cache management application; wherein the configuration information includes N sub-configuration information of N terminal devices, and the i-th sub-configuration information among the N sub-configuration information includes a first preset threshold, a second preset threshold, and a prompt method corresponding to the i-th terminal device among the N terminal devices; the first preset threshold is greater than or equal to the second preset threshold; wherein, when the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold, the data stored in the cache of the i-th terminal device is to be cleared, and the amount of the cleared data is less than the second preset threshold; the prompt method includes an alarm method for indicating that the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold.

[0014] According to another aspect of an embodiment of the present application, a terminal data management device is also provided, including: an acquisition module, used to acquire target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device; a determination module, used to determine a target device identifier based on the target data, wherein the target device identifier is used to identify the target device, and the target data is data in the target device; and a writing module, used to write the target data into a target storage space corresponding to the target device in the cache management application.

[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned terminal data management method when running.

[0016] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the terminal data management method through the computer program.

[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and the computer program performs the above-mentioned terminal data management method when executed by a processor.

[0018] Through this application, the target data is obtained from the message queue, and the identification of the target device is determined based on the obtained target data, so that the obtained target data is written into the storage space corresponding to the target device in the cache management application. Since the target data includes data written and deleted by the terminal device in real time to the cache of the terminal device, the cache management application can be used to implement real-time monitoring of the cache data of the terminal device, thereby improving the monitoring efficiency and solving the problem of difficulty in real-time monitoring of the cache data of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0021] Figure 1 is a schematic diagram of a hardware environment of a terminal data management method according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of a method for managing terminal data according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an optional management of each business service cache according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of an optional overall system framework of terminal data management according to an embodiment of the present application;

[0025] Figure 5 is a timing diagram of an optional terminal data management according to an embodiment of the present application;

[0026] Figure 6 is a structural block diagram of a terminal data management device according to an embodiment of the present application;

[0027] Figure 7 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] According to one aspect of an embodiment of the present application, a method for managing terminal data is provided. The method for managing terminal data is widely used in smart home, smart home, smart home device ecology, smart residential ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for managing terminal data can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0031] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0032] In order to solve the above problems, a terminal data management method is provided in this embodiment, including but not limited to being applied to the whole house intelligent digital control application scenario. Figure 2 : is a flow chart of a method for managing terminal data according to an embodiment of the present application, the flow includes the following steps S202-S206:

[0033] Step S202: Acquire target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device;

[0034] Optionally, the cache management application obtains data from the message queue in real time, and when it is detected that there is data in the message queue, obtains target data from the message queue.

[0035] Optionally, the target data is data sent by a terminal device to the message queue.

[0036] It should be noted that when the terminal device writes and / or deletes data into the cache of the terminal device, the written and / or deleted data is immediately sent to the message queue.

[0037] Step S204: determining a target device identifier according to the target data, wherein the target device identifier is used to identify the target device, and the target data is data in the target device;

[0038] Step S206: writing the target data into the target storage space corresponding to the target device in the cache management application.

[0039] Optionally, the cache management application has multiple storage spaces, and different terminal devices have corresponding storage spaces in the cache management application.

[0040] Optionally, the cache management application may delete data stored in the target storage space before a preset time, for example, the preset time is 30 days.

[0041] In an exemplary embodiment, the method also includes the following steps: when the amount of data stored in the target storage space corresponding to the target device in the cache management application is greater than or equal to a first limit value, expanding the target storage space corresponding to the target device in the cache management application; when the amount of data stored in the target storage space corresponding to the target device in the cache management application is less than or equal to the first limit value, reducing the target storage space corresponding to the target device in the cache management application.

[0042] Optionally, when the amount of data stored in the target storage space corresponding to the target device in the cache management application is greater than or equal to a first limit value, an alarm message is sent, and the alarm message is used to remind to clean up the data stored in the cache of the target device.

[0043] Optionally, refer to Figure 3 , the first terminal device corresponds to the first business service (business service 1), the second terminal device corresponds to the second business service (business service 2), and the third terminal device corresponds to the third business service (business service 3). When the amount of data stored in the target storage space corresponding to the first terminal device in the cache management application is less than or equal to the second limit value, the target storage space corresponding to the first terminal device in the cache management application is reduced; when the amount of data stored in the target storage space corresponding to the second terminal device in the cache management application is greater than or equal to the first limit value, the target storage space corresponding to the second terminal device in the cache management application is expanded; when the amount of data stored in the target storage space corresponding to the third terminal device in the cache management application is greater than the second limit value and less than the first limit value, the target storage space corresponding to the third terminal device in the cache management application is maintained.

[0044] It should be noted that if the amount of data stored in the target storage space corresponding to the target device in the cache management application is greater than or equal to the first limit value, it means that the utilization rate of the target storage space corresponding to the target device in the cache management application is high, so the target storage space corresponding to the target device in the cache management application is expanded; if the amount of data stored in the target storage space corresponding to the target device in the cache management application is less than or equal to the second limit value, it means that the utilization rate of the target storage space corresponding to the target device in the cache management application is low, so the target storage space corresponding to the target device in the cache management application is reduced.

[0045] It should be noted that through the above steps, the target storage space corresponding to the target device in the cache management application can be flexibly adjusted to maximize the utilization of the data storage space, so that terminal devices with more cache data can store more data in the cache management application.

[0046] In the above steps, the target data is obtained from the message queue, and the identification of the target device is determined based on the obtained target data, so that the obtained target data is written into the storage space corresponding to the target device in the cache management application. Since the target data includes data written and deleted by the terminal device in real time to the cache of the terminal device, the cache management application can be used to implement real-time monitoring of the cache data of the terminal device, thereby improving the monitoring efficiency and solving the problem of difficulty in real-time monitoring of the cache data of the terminal device.

[0047] In an exemplary embodiment, the method also includes the following steps: when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, sending a first instruction to the target device through the cache management application; wherein the first instruction is used to instruct the target device to clean up the data stored in the cache of the target device according to preset rules, so that the amount of data stored in the cache of the target device is less than a second preset threshold, wherein the second preset threshold is less than or equal to the first preset threshold.

[0048] In an exemplary embodiment, the target device cleans up the data stored in the cache of the target device according to preset rules, including: the target device cleans up the data stored in the cache of the target device according to the storage duration of the data written to the cache of the target device.

[0049] Optionally, when the storage time length of the first target data after being written into the cache of the target device is longer than the storage time length of the second target data after being written into the cache of the target device, the target device clears the first target data first.

[0050] In an exemplary embodiment, the target device cleans up the data stored in the cache of the target device according to a preset rule, including: the target device cleans up the data stored in the cache of the target device according to the usage frequency of the data in the cache of the target device.

[0051] Optionally, when the usage frequency of the first target data in the cache of the target device is greater than the usage frequency of the second target data in the cache of the target device, the target device clears the second target data preferentially.

[0052] In an exemplary embodiment, the target device cleans up the data stored in the cache of the target device according to a preset rule, including: the target device cleans up the data stored in the cache of the target device according to the size of the data in the cache of the target device.

[0053] Optionally, when the size of the first target data in the cache of the target device is larger than the second target data in the cache of the target device, the target device clears the first target data first.

[0054] In an exemplary embodiment, the target device cleans up the data stored in the cache of the target device according to a preset rule, including: the target device cleans up the data stored in the cache of the target device according to the priority of the data in the cache of the target device.

[0055] Optionally, when the priority of the first target data in the cache of the target device is greater than the priority of the second target data in the cache of the target device, the target device clears the second target data first.

[0056] It should be noted that, through the above steps, data that may have expired can be cleaned up in a timely manner, ensuring that the target device can use the cache space more effectively and improve the utilization rate of the cache space.

[0057] Optionally, after the target device clears the first target data, the first target data is sent to a message queue, wherein the first target data has a first tag, wherein the first tag is used to indicate that the first target data is deleted data.

[0058] In an exemplary embodiment, the method further includes the following steps: when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, sending an alarm message through the cache management application, wherein the alarm message is used to remind to clean up the data stored in the cache of the target device.

[0059] Optionally, the cache management application can determine the alarm mode through the alarm service, and then send the alarm information according to the alarm mode. Exemplarily, the alarm mode is to send the alarm information to the xxx management personnel.

[0060] In an exemplary embodiment, the method further includes the following steps: displaying the data stored in the target storage space through a display page; and sending a second instruction to the target device when first specified information is obtained through the display page, wherein the first specified information is information submitted by the target object after determining to delete the first specified data, the data stored in the target storage space includes the first specified data, and the second instruction is used to instruct the target device to delete the first specified data in the cache of the target device.

[0061] That is, the cache management application can show the target object what data is in the target device, and then obtain the first specified information of the target object through the display page to send a second instruction to the target device, instructing the target device to delete the first specified data specified by the target object.

[0062] Optionally, refer to Figure 4 The cache management application includes a Key-Value (KV) management module, which displays the data stored in the target storage space through a display page, so that the target object can view the data stored in the cache management application in real time and realize real-time monitoring of the cache data.

[0063] Optionally, the data stored in the terminal device in the present application is a kind of KV data.

[0064] In an exemplary embodiment, the method further includes the following steps: displaying the data stored in the target storage space through a display page; and sending a third instruction to the target device when second specified information is obtained through the display page, wherein the second specified information is information submitted by the target object after determining to restore the second specified data, the data stored in the target storage space includes the second specified data, and the third instruction is used to instruct the target device to store the second specified data in the target device.

[0065] It should be noted that when the target device is misoperated and the required data is mistakenly deleted, the mistakenly deleted data can still be restored through the above steps, ensuring the security of data storage, improving tolerance to misoperation, and having a greater fault tolerance rate.

[0066] In an exemplary embodiment, the method also includes the following steps: when the third specified information is obtained through the cache management application, sending a fourth instruction to the target device; wherein the third specified information is information submitted by the target device when determining to trace back the data in the cache of the target device to a target historical moment, and the fourth instruction carries the target data set stored in the cache of the target device at the target historical moment, and the fourth instruction is used to instruct the target device to use the target data set to overwrite the data currently stored in the cache of the target device.

[0067] That is to say, if the data currently stored in the target device is wrong, the above steps can be used to replace the currently stored data with certain historical data, thereby realizing the function of efficiently troubleshooting and analyzing historical cache data, thereby ensuring the accuracy of the data, realizing the monitoring of cached data, and facilitating the target object to view historical cached data in real time.

[0068] In an exemplary embodiment, the method also includes the following steps: obtaining configuration information through the cache management application; wherein the configuration information includes N sub-configuration information of N terminal devices, and the i-th sub-configuration information among the N sub-configuration information includes a first preset threshold, a second preset threshold, and a prompt method corresponding to the i-th terminal device among the N terminal devices; the first preset threshold is greater than or equal to the second preset threshold; wherein, when the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold, the data stored in the cache of the i-th terminal device is to be cleared, and the amount of the cleared data is less than the second preset threshold; the prompt method includes an alarm method for indicating that the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold.

[0069] Optionally, the execution entity of the above steps is a cache management application.

[0070] Obviously, the embodiments described above are only some embodiments of the present application, not all embodiments. In order to better understand the above method, the above process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application. Optionally:

[0071] Figure 4 An overall framework structure design of an optional data management system is provided. The local cache governance application (i.e., the above-mentioned cache management application) provides a console and configuration management for centralized data management to realize functions such as real-time query of the local cache. The local cache governance application includes but is not limited to: an access management module, a configuration management module, an SDK key-value pair (Key-Value, abbreviated as KV) management module, and an alarm service module.

[0072] Optionally, business services corresponding to different terminal devices (such as business service 1 and business service 2) will send cache data to a message queue (MQ for short) (ie, the target device sends the target data to the message queue).

[0073] Optionally, the local cache management application obtains KV data (including the above target data) from the message queue.

[0074] Optionally, the data management module displays the data stored in the target storage space through a display page, thereby facilitating the target object to view the data stored in the cache management application in real time, thereby achieving real-time monitoring of the cache data.

[0075] Optionally, when it is determined through the local cache management application that the amount of data stored in the cache of the terminal device is greater than a first preset threshold, the alarm service module will send an alarm message.

[0076] It should be noted that the business service uses the methods provided by the standard Software Development Kit (SDK) to operate the local cache;

[0077] Figure 5 An optional sequence diagram for uploading local cache standard SDK key-value pairs (Key-Value, referred to as KV) is provided:

[0078] 1. The user accesses the interface service including cache provided by the business service;

[0079] 2. The business service uses the local cache toolkit (local-cache-sdk) to operate the local cache and perform write cache operations;

[0080] 3.1local-cache-sdk performs write cache operations,

[0081] 3.2local-cache-sdk also asynchronously executes to send cached data to the message queue (MQ);

[0082] 4. The local cache console consumes (i.e. subscribes to) cache data.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0084] In the present embodiment, a terminal data management device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the equipment described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0085] Figure 6 : is a structural block diagram of a terminal data management device according to an embodiment of the present application, the device comprising:

[0086] An acquisition module 62 is used to acquire target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device;

[0087] A determination module 64, configured to determine a target device identifier according to the target data, wherein the target device identifier is used to identify a target device, and the target data is data in the target device;

[0088] The writing module 66 is used to write the target data into the target storage space corresponding to the target device in the cache management application.

[0089] Through the above device, the target data is obtained from the message queue, and the identification of the target device is determined according to the obtained target data, so that the obtained target data is written into the storage space corresponding to the target device in the cache management application. Since the target data includes data written and deleted by the terminal device in real time to the cache of the terminal device, the cache data of the terminal device can be monitored in real time through the cache management application, which improves the monitoring efficiency and solves the problem of difficulty in real-time monitoring of the cache data of the terminal device.

[0090] In an exemplary embodiment, the above-mentioned device also includes: a sending module, which is used to send a first instruction to the target device through the cache management application when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold; wherein the first instruction is used to instruct the target device to clean up the data stored in the cache of the target device according to a preset rule so that the amount of data stored in the cache of the target device is less than a second preset threshold, wherein the second preset threshold is less than or equal to the first preset threshold.

[0091] In an exemplary embodiment, the sending module is also used to send an alarm message through the cache management application when it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, wherein the alarm message is used to remind to clean up the data stored in the cache of the target device.

[0092] In an exemplary embodiment, the above-mentioned device also includes: a display module, which is used to display the data stored in the target storage space through a display page; a sending module, which is also used to send a second instruction to the target device when the first specified information is obtained through the display page, wherein the first specified information is information submitted by the target object after determining to delete the first specified data, the data stored in the target storage space includes the first specified data, and the second instruction is used to instruct the target device to delete the first specified data in the cache of the target device.

[0093] In an exemplary embodiment, the display module is also used to display the data stored in the target storage space through a display page; the sending module is also used to send a third instruction to the target device when the second specified information is obtained through the display page, wherein the second specified information is information submitted by the target object after determining to restore the second specified data, the data stored in the target storage space includes the second specified data, and the third instruction is used to instruct the target device to store the second specified data in the target device.

[0094] In an exemplary embodiment, the sending module is also used to send a fourth instruction to the target device when the third specified information is obtained through the cache management application; wherein the third specified information is information submitted by the target device when determining to trace back the data in the cache of the target device to the target historical moment, and the fourth instruction carries the target data set stored in the cache of the target device at the target historical moment, and the fourth instruction is used to instruct the target device to use the target data set to overwrite the data currently stored in the cache of the target device.

[0095] In an exemplary embodiment, the acquisition module is also used to obtain configuration information through the cache management application; wherein the configuration information contains N sub-configuration information of N terminal devices, and the i-th sub-configuration information among the N sub-configuration information includes a first preset threshold, a second preset threshold, and a prompt method corresponding to the i-th terminal device among the N terminal devices; the first preset threshold is greater than or equal to the second preset threshold; wherein, when the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold, the data stored in the cache of the i-th terminal device is to be cleared, and the amount of the cleared data is less than the second preset threshold; the prompt method includes an alarm method for indicating that the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold.

[0096] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0097] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0098] S1, obtaining target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device;

[0099] S2, determining a target device identifier according to the target data, wherein the target device identifier is used to identify the target device, and the target data is data in the target device;

[0100] S3, writing the target data into a target storage space corresponding to the target device in the cache management application.

[0101] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0102] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0103] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.

[0104] Optionally, in this embodiment, the processor 704 may be configured to perform the following steps through a computer program:

[0105] S1, obtaining target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device;

[0106] S2, determining a target device identifier according to the target data, wherein the target device identifier is used to identify the target device, and the target data is data in the target device;

[0107] S3, writing the target data into a target storage space corresponding to the target device in the cache management application.

[0108] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0109] Alternatively, a person skilled in the art may understand that: Figure 7 The structure shown is for illustration only. Figure 7 The structure of the electronic device is not limited. For example, the electronic device may also include Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations shown.

[0110] Among them, the memory 702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the terminal data management method and device in the embodiments of the present application. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizing the above-mentioned terminal data management method. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include a memory remotely located relative to the processor 704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 702 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Figure 7 As shown, the memory 702 may include, but is not limited to, the acquisition module 62, the determination module 64, and the writing module 66 in the terminal data management device. In addition, other module units (such as the first determination module and the second determination module) in the terminal data management device may also be included but are not limited to the above, which will not be repeated in this example.

[0111] Optionally, the transmission device 707 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 707 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 707 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0112] In addition, the electronic device further includes: a display 708; and a connection bus 710, which is used to connect various module components in the electronic device.

[0113] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0114] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0115] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0116] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0117] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0118] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for managing terminal data, characterized in that: include: Acquire target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device; Determine a target device identifier according to the target data, wherein the target device identifier is used to identify the target device, and the target data is data in the target device; The target data is written into a target storage space corresponding to the target device in the cache management application.

2. The method according to claim 1, characterized in that: The method further comprises: When it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, sending a first instruction to the target device through the cache management application; Among them, the first instruction is used to instruct the target device to clean up the data stored in the cache of the target device according to a preset rule, so that the amount of data stored in the cache of the target device is less than a second preset threshold, wherein the second preset threshold is less than or equal to the first preset threshold.

3. The method according to claim 1, characterized in that: The method further comprises: When it is determined through the data stored in the target storage space that the amount of data stored in the cache of the target device is greater than a first preset threshold, an alarm message is sent through the cache management application, wherein the alarm message is used to remind the data stored in the cache of the target device to be cleaned up.

4. The method according to claim 1, characterized in that The method further comprises: Displaying the data stored in the target storage space by displaying a page; When the first specified information is obtained through the display page, a second instruction is sent to the target device, wherein the first specified information is information submitted by the target object after determining to delete the first specified data, the data stored in the target storage space includes the first specified data, and the second instruction is used to instruct the target device to delete the first specified data in the cache of the target device.

5. The method according to claim 1, characterized in that: The method further comprises: Displaying the data stored in the target storage space by displaying a page; When the second specified information is obtained through the display page, a third instruction is sent to the target device, wherein the second specified information is information submitted by the target object after determining to restore the second specified data, the data stored in the target storage space includes the second specified data, and the third instruction is used to instruct the target device to store the second specified data in the target device.

6. The method according to claim 1, characterized in that The method further comprises: In case that the third designated information is acquired through the cache management application, sending a fourth instruction to the target device; Among them, the third specified information is the information submitted by the target device when it is determined to trace the data in the cache of the target device back to the target historical moment, and the fourth instruction carries the target data set stored in the cache of the target device at the target historical moment. The fourth instruction is used to instruct the target device to use the target data set to overwrite the data currently stored in the cache of the target device.

7. The method according to claim 1, characterized in that The method further comprises: Obtaining configuration information through the cache management application; The configuration information includes N sub-configuration information of N terminal devices, and the i-th sub-configuration information of the N sub-configuration information includes a first preset threshold, a second preset threshold, and a prompt method corresponding to the i-th terminal device of the N terminal devices; the first preset threshold is greater than or equal to the second preset threshold; Among them, when the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold, the data stored in the cache of the i-th terminal device is to be cleared, and the amount of the cleared data is less than the second preset threshold; the prompt method includes an alarm method for indicating that the amount of data stored in the cache of the i-th terminal device is greater than the first preset threshold.

8. A terminal data management device, characterized in that: include: an acquisition module, configured to acquire target data from a message queue, wherein the target data includes: data written and / or deleted by a terminal device to a cache of the terminal device, and the message queue is a message queue between a cache management application and the terminal device; A determination module, configured to determine a target device identifier according to the target data, wherein the target device identifier is used to identify a target device, and the target data is data in the target device; A writing module is used to write the target data into a target storage space corresponding to the target device in the cache management application.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.