CN115757506A - Data processing method, device, medium and equipment - Google Patents

Data processing method, device, medium and equipment Download PDF

Info

Publication number
CN115757506A
CN115757506A CN202211543117.5A CN202211543117A CN115757506A CN 115757506 A CN115757506 A CN 115757506A CN 202211543117 A CN202211543117 A CN 202211543117A CN 115757506 A CN115757506 A CN 115757506A
Authority
CN
China
Prior art keywords
cache function
system process
target system
processed
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211543117.5A
Other languages
Chinese (zh)
Inventor
张春和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211543117.5A priority Critical patent/CN115757506A/en
Publication of CN115757506A publication Critical patent/CN115757506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

An embodiment of the application provides a data processing method, a device, a medium and equipment, wherein the method comprises the following steps: detecting current running state information of a target system process added with a cache function, wherein the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed; analyzing the task information to be processed according to a preset judgment rule to obtain an analysis result; and judging whether to close the cache function of the target system process according to the analysis result. By using the data processing method provided by the embodiment of the application, the system process added with the cache function is monitored in real time, the current running state information of the system process is analyzed, whether the system process needs to continue to use the cache function or not is automatically judged, the cache function is automatically closed under the condition that the system process does not need to be used, and the method is more intelligent and efficient.

Description

Data processing method, device, medium and equipment
Technical Field
The present application relates to the field of electronic communications technologies, and in particular, to a data processing method, apparatus, medium, and device.
Background
The data buffer module is a memory chip on the hard disk controller, has extremely high access speed, and is a buffer between the internal storage of the hard disk and an external interface. The internal data transmission speed of the hard disk is different from the transmission speed of the external interface, so that the cache plays a role of buffering. The size and speed of the cache are important factors directly related to the transmission speed of the hard disk, and the overall performance of the hard disk can be greatly improved. When the hard disk accesses the fragmented data, the data needs to be exchanged between the hard disk and the memory continuously, if a large cache exists, the fragmented data can be temporarily stored in the cache, the load of an external system is reduced, and the transmission speed of the data is also improved. After the data caching module is added to the system process, a unified data setting, reading and removing method can be provided for DOM elements and JavaScript objects in the system process, basic functions are provided for a queue module, an animation module, a style operation module and an event system in the jQuery, and the method is responsible for maintaining internal data of the modules during operation. At present, for a system process added with a cache function, when the cache function is not needed or is not needed to be used, the existence of the cache function only occupies system resources (for example, a storage space), and at this time, a code of a cache function module needs to be modified manually or a parameter needs to be modified manually to close the cache function, so that the process is complicated to operate and has high dependence on people.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device, a data processing medium and data processing equipment.
An embodiment of the present application provides a data processing method, where the data processing method includes:
detecting current running state information of a target system process added with a cache function, wherein the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed;
analyzing the task information to be processed according to a preset judgment rule to obtain an analysis result;
and judging whether to close the cache function of the target system process according to the analysis result.
In the data processing method according to the embodiment of the present application, the determining whether to close the cache function of the target system process according to the analysis result includes:
if the analysis result is that the number of the tasks to be processed does not exceed a first preset threshold value, closing the cache function of the target system process; or
And if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold value, closing the cache function of the target system process.
In the data processing method according to the embodiment of the present application, the first preset threshold and the second preset threshold are set according to a current system operation resource utilization rate.
In the data processing method according to the embodiment of the present application, the method further includes:
receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process to be added with a cache function;
judging whether a target cache function parameter corresponding to the preset identifier exists in a current database or not according to the preset identifier;
and if the target cache function parameter corresponding to the preset identification exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
In the data processing method according to the embodiment of the present application, before the determining, according to the preset identifier, whether a target cache function parameter corresponding to the preset identifier exists in a current database, the method further includes:
judging whether the target system process has an adding authority for adding a cache function;
and if the target system process does not have the adding permission, canceling the cache function adding request.
In the data processing method according to the embodiment of the present application, after determining whether the target system process has an add permission to add a cache function, the method further includes:
if the target system process has the adding permission and the target cache function parameter corresponding to the preset identification does not exist in the current database, popping up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and marking the target system process as a first configuration system process;
and acquiring the cache function parameter of the first configuration system process, binding the cache function parameter of the first configuration system process with a preset identifier, and storing the bound cache function parameter in the database.
In the data processing method according to the embodiment of the present application, the method further includes:
when determining that a target cache function parameter corresponding to the preset identification exists in the current database, judging whether the target cache parameter is encrypted data;
if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key;
and when the cache function adding request is judged to contain the decryption key, the decryption key is used for carrying out decryption operation on the encrypted data.
Correspondingly, another aspect of the embodiments of the present application further provides a data processing apparatus, where the data processing apparatus includes:
the system comprises a state detection module, a cache function module and a cache function module, wherein the state detection module is used for detecting the current running state information of a target system process added with the cache function, the running state information comprises to-be-processed task information of the target system for current running, and the to-be-processed task information comprises the number of to-be-processed tasks and the occupied data volume of the to-be-processed tasks;
the information analysis module is used for analyzing the to-be-processed task information according to a preset judgment rule to obtain an analysis result;
and the first judgment module is used for judging whether to close the cache function of the target system process according to the analysis result.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the data processing method described above.
Correspondingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the data processing method described above.
The embodiment of the application provides a data processing method, a device, a medium and equipment, wherein the method comprises the steps of detecting current running state information of a target system process added with a cache function, wherein the running state information comprises information of tasks to be processed, which are currently run by the target system, of the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed; analyzing the task information to be processed according to a preset judgment rule to obtain an analysis result; and judging whether to close the cache function of the target system process according to the analysis result. By using the data processing method provided by the embodiment of the application, the system process added with the cache function is monitored in real time, the current running state information of the system process is analyzed, whether the system process needs to continue to use the cache function or not is automatically judged, the cache function is automatically closed under the condition that the system process does not need to be used, and the method is more intelligent and efficient.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
It should be noted that the following is a brief introduction to the background of the present solution:
the technical problem that the cache function can be closed only by modifying codes of a cache function module or manually modifying parameters when the cache function needs to be closed in the current system process added with the cache function, and the technical problem that the operation is complicated and the dependence on people is high is mainly solved. It can be understood that the data cache module is a memory chip on the hard disk controller, has extremely fast access speed, and is a buffer between the internal storage of the hard disk and the external interface. The internal data transmission speed of the hard disk is different from the transmission speed of the external interface, so that the cache plays a role of buffering. The size and speed of the cache are important factors directly related to the transmission speed of the hard disk, and the overall performance of the hard disk can be greatly improved. When the hard disk accesses the fragmented data, the data needs to be exchanged between the hard disk and the memory continuously, if a large cache exists, the fragmented data can be temporarily stored in the cache, the load of an external system is reduced, and the transmission speed of the data is also improved. After the data caching module is added to the system process, a uniform data setting, reading and removing method can be provided for DOM elements and JavaScript objects in the system process, basic functions are provided for a queue module, an animation module, a style operation module and an event system in the jQuery, and internal data of the modules in operation are maintained. At present, for a system process added with a cache function, when the cache function is not needed or is not needed to be used, the existence of the cache function only occupies system resources (for example, a storage space), and at this time, a code of a cache function module needs to be modified manually or a parameter needs to be modified manually to close the cache function, so that the process is complicated to operate and has high dependence on people.
In order to solve the above technical problem, an embodiment of the present application provides a data processing method. By using the data processing method provided by the embodiment of the application, the system process added with the cache function is monitored in real time, the current running state information of the system process is analyzed, whether the system process needs to continuously use the cache function or not is automatically judged, the cache function is automatically closed under the condition that the system process does not need to be used, and the method is more intelligent and efficient.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. The data processing method is applied to the terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, web service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
step 101, detecting current running state information of a target system process added with a cache function, wherein the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed.
The running state information includes information of tasks to be processed, which are currently running by the target system, and the information of the tasks to be processed includes the number of the tasks to be processed and the occupied data volume of the tasks to be processed.
In other embodiments, the to-be-processed task information may further include other information, for example, the processing urgency of the to-be-processed task, and when a certain to-be-processed task has a requirement for repeated processing for multiple times, the to-be-processed task of the type needs to be temporarily cached in the cache area provided by the cache function, so as to improve the data processing efficiency.
And 102, analyzing the to-be-processed task information according to a preset judgment rule to obtain an analysis result.
The judgment rule is preset and is determined according to actual conditions, and in the embodiment, the judgment rule is used for judging whether the current target system process needs to close the cache function according to the to-be-processed task information.
And 103, judging whether to close the cache function of the target system process according to the analysis result.
The system process added with the cache function is monitored in real time, the current running state information of the system process is analyzed, whether the system process needs to continue to use the cache function or not is judged automatically, the cache function is closed automatically under the condition that the system process does not need to be used, and the system process is more intelligent and efficient.
If the analysis result shows that the number of the tasks to be processed does not exceed a first preset threshold (for example, 20), closing the cache function of the target system process; or
And if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold (for example, 10G), closing the cache function of the target system process.
It should be noted that the first preset threshold and the second preset threshold are set according to the utilization rate of the current system operating resources. When the utilization rate of the current system operating resources is low, it indicates that the current system operable resources are sufficient, and the value corresponding to the first preset threshold or the second preset threshold may be increased appropriately.
In some embodiments, when the system process with the closed cache function needs to add the cache function again, the cache function addition request may be reissued, and the specific steps include:
and 104, receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identifier of a target system process to be added with a cache function.
The preset identifier may be an id number or other character strings that enable the electronic device to identify the system process attribute. In this embodiment, by identifying the preset identifier of the target system process included in the request for adding the cache function, it is determined whether the target system process needs to be manually configured with the parameter and whether the target system process has the permission for adding the cache function module according to the preset identifier.
And 105, judging whether a target cache function parameter corresponding to the preset identifier exists in the current database or not according to the preset identifier.
In this embodiment, by using the data processing method provided in this embodiment of the present application, cache function parameters of different system processes are pre-stored in a database, and when an instruction for adding a cache function module to a target system process is received, it is first determined whether a target cache function parameter corresponding to the target system process exists in the stored cache function parameters, and it is determined whether a manual parameter configuration operation is required according to a determination result.
In other embodiments, whether the target system process has the addition permission of the cache function module may be further determined according to the preset identifier. And if the target system process does not have the adding permission, canceling the adding request of the cache function.
And 106, if the target cache function parameter corresponding to the preset identifier exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
If the target cache function parameters exist, the parameter configuration operation is directly carried out on the target system process by using the target cache function parameters which are stored in advance. Therefore, the parameter configuration is not required to be manually performed by a user when the cache function module is used for realizing the cache function at each time, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
In other embodiments, if the target system process has the addition permission and the target cache function parameter corresponding to the preset identifier does not exist in the current database, popping up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and marking the target system process as a first configuration system process.
The cache function parameters in the database can be expanded by acquiring the cache function parameters of the system process configured for the first time, binding the cache function parameters of the system process configured for the first time with the preset identification and then storing the bound cache function parameters into the database.
In some embodiments, when the same cache function module is frequently subjected to parameter modification and applied to different system processes, data leakage of the service system may be caused, and data storage security of the service system may be affected. In order to solve the problems, different encrypted information is set for the cache function parameters of different system processes, the electronic equipment needs to decrypt the encrypted information when calling the cache function parameters to add a cache function module to the system processes, and the cache function parameters can be obtained after the decryption is successful. When determining that the target cache function parameter corresponding to the preset identifier exists in the current database, judging whether the target cache parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key; and when the cache function adding request contains the decryption key, the decryption key is used for decrypting the encrypted data.
In some embodiments, after determining whether the cache function addition request includes the decryption key, the method further includes the following steps:
and when the cache function adding request does not contain the decryption key, canceling the cache function adding request.
In some embodiments, after the decrypting key is used to perform a decryption operation on the encrypted data, the method further comprises the steps of:
and acquiring a decryption result of the decryption operation, and if the decryption result is decryption failure, canceling the cache function addition request.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the data processing method provided in the embodiment of the present application, the current running state information of the target system process added with the cache function is detected, where the running state information includes information of to-be-processed tasks currently running by the target system, and the to-be-processed task information includes the number of to-be-processed tasks and the occupied data volume of the to-be-processed tasks; analyzing the task information to be processed according to a preset judgment rule to obtain an analysis result; and judging whether to close the cache function of the target system process according to the analysis result. By using the data processing method provided by the embodiment of the application, the system process added with the cache function is monitored in real time, the current running state information of the system process is analyzed, whether the system process needs to continue to use the cache function or not is automatically judged, the cache function is automatically closed under the condition that the system process does not need to be used, and the method is more intelligent and efficient.
The embodiment of the application also provides a data processing device, and the data processing device can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing device 30 may include:
the state detection module 31 is configured to detect current running state information of a target system process added with a cache function, where the running state information includes information of to-be-processed tasks currently running by the target system, and the to-be-processed task information includes the number of to-be-processed tasks and an occupied data amount of the to-be-processed tasks;
the information analysis module 32 is configured to perform analysis operation on the to-be-processed task information according to a preset judgment rule to obtain an analysis result;
and a first determining module 33, configured to determine whether to close the cache function of the target system process according to the analysis result.
In some embodiments, the first determining module 32 is configured to, if the analysis result indicates that the number of the to-be-processed tasks does not exceed a first preset threshold, close a cache function of the target system process; or if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold value, closing the cache function of the target system process.
In some embodiments, the first preset threshold and the second preset threshold are set according to a current system operation resource utilization rate.
In some embodiments, the apparatus further includes a function adding module, configured to receive a cache function adding request, and analyze the cache function adding request to obtain a preset identifier of a target system process to which a cache function is to be added; judging whether a target cache function parameter corresponding to the preset identifier exists in a current database or not according to the preset identifier; and if the target cache function parameter corresponding to the preset identification exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
In some embodiments, the apparatus further includes a second determining module, configured to determine whether the target system process has an add permission to add the cache function; and if the target system process does not have the adding permission, canceling the cache function adding request.
In some embodiments, the apparatus further includes a parameter entry module, configured to pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process if the target system process has the addition permission and the target cache function parameter corresponding to the preset identifier does not exist in the current database, and mark the target system process as a first configuration system process.
In some embodiments, the apparatus further includes a storage module, configured to obtain the cache function parameter of the system process configured for the first time, and store the cache function parameter of the system process configured for the first time and the preset identifier in the database after binding.
In some embodiments, the apparatus further includes a decryption module, configured to determine whether a target cache function parameter is encrypted data when it is determined that a target cache function parameter corresponding to the preset identifier exists in the current database; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key; and when the cache function adding request is judged to contain the decryption secret key, the decryption secret key is used for carrying out decryption operation on the encrypted data.
In some embodiments, the apparatus further includes a third determining module, configured to cancel the cache function addition request when it is determined that the cache function addition request does not include the decryption key.
In some embodiments, the apparatus further includes a fourth determining module, configured to obtain a decryption result of the decryption operation, and cancel the cache function addition request if the decryption result is a decryption failure.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, in the data processing apparatus 30 provided in the embodiment of the present application, the state detecting module 31 is configured to detect current running state information of a target system process added with a cache function, where the running state information includes information of to-be-processed tasks currently running by the target system, and the information of to-be-processed tasks includes the number of to-be-processed tasks and an occupied data amount of the to-be-processed tasks; the information analysis module 32 is configured to perform analysis operation on the to-be-processed task information according to a preset judgment rule to obtain an analysis result; the first determining module 33 is configured to determine whether to close the cache function of the target system process according to the analysis result.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure, in which the data processing apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a status detection module 31, an information analysis module 32, and a first determination module 33. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
the system comprises a state detection instruction, a cache function processing instruction and a cache function processing instruction, wherein the state detection instruction is used for detecting current running state information of a target system process added with the cache function, the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed;
the information analysis instruction is used for analyzing the to-be-processed task information according to a preset judgment rule to obtain an analysis result;
and the first judgment instruction is used for judging whether to close the cache function of the target system process according to the analysis result.
In some embodiments, the first determining instruction is configured to, if the analysis result indicates that the number of the to-be-processed tasks does not exceed a first preset threshold, close a cache function of the target system process; or if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold value, closing the cache function of the target system process.
In some embodiments, the first preset threshold and the second preset threshold are set according to a current system operation resource utilization rate.
In some embodiments, the program further includes a function adding instruction, configured to receive a cache function adding request, and parse the cache function adding request to obtain a preset identifier of a target system process to which a cache function is to be added; judging whether a target cache function parameter corresponding to the preset identifier exists in a current database or not according to the preset identifier; and if the target cache function parameter corresponding to the preset identification exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
In some embodiments, the program further includes a second determination instruction for determining whether the target system process has an addition authority for adding a cache function; and if the target system process does not have the adding permission, canceling the cache function adding request.
In some embodiments, the program further includes a parameter entry instruction, configured to pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process if the target system process has the addition permission and the target cache function parameter corresponding to the preset identifier does not exist in the current database, and mark the target system process as a first configuration system process.
In some embodiments, the program further includes a storage instruction, configured to acquire a caching function parameter of the system process configured for the first time, and store the caching function parameter of the system process configured for the first time in the database after binding the caching function parameter of the system process configured for the first time with a preset identifier.
In some embodiments, the program further includes a decryption instruction, configured to determine whether a target cache function parameter corresponding to the preset identifier exists in the current database, where the target cache function parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key; and when the cache function adding request is judged to contain the decryption secret key, the decryption secret key is used for carrying out decryption operation on the encrypted data.
In some embodiments, the program further includes a third determining instruction, configured to cancel the cache function addition request when it is determined that the decryption key is not included in the cache function addition request.
In some embodiments, the program further includes a fourth determining instruction, configured to obtain a decryption result of the decryption operation, and cancel the cache function addition request if the decryption result is a decryption failure.
The embodiment of the application also provides the terminal equipment. The terminal device can be a server, a smart phone, a computer, a tablet computer and the like.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the data processing method provided in the foregoing embodiment. The terminal device 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown in the figure), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown in the figure), and a power supply 190. Those skilled in the art will appreciate that the terminal device 1200 configuration shown in fig. 4 does not constitute a limitation of terminal device 1200, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be configured to store a software program and a module, such as a program instruction/module corresponding to the data processing method in the foregoing embodiment, and the processor 180 executes various functional applications and data processing by operating the software program and the module stored in the memory 120, and may automatically select a vibration alert mode according to a current scene where the terminal device is located to perform data update, which may not only ensure that a scene such as a conference is not disturbed, but also ensure that a user may sense an incoming call, and thus, intelligence of the terminal device is improved. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch-sensitive display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch-sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects a touch direction of a user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 1200, detailed descriptions thereof are omitted.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, which may assist the user in sending and receiving e-mails, browsing web pages, accessing streaming media, etc., through the transmission module 170 (e.g., wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal device 1200 also includes a power supply 190 for powering the various components, which in some embodiments may be logically coupled to processor 180 via a power management system to manage power discharge and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, and the one or more programs include instructions for:
the system comprises a state detection instruction, a cache function processing instruction and a cache function processing instruction, wherein the state detection instruction is used for detecting current running state information of a target system process added with the cache function, the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed;
the information analysis instruction is used for analyzing the to-be-processed task information according to a preset judgment rule to obtain an analysis result;
and the first judgment instruction is used for judging whether to close the cache function of the target system process according to the analysis result.
In some embodiments, the first determining instruction is configured to, if the analysis result indicates that the number of the to-be-processed tasks does not exceed a first preset threshold, close a cache function of the target system process; or if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold value, closing the cache function of the target system process.
In some embodiments, the first preset threshold and the second preset threshold are set according to a current system operation resource utilization rate.
In some embodiments, the program further includes a function adding instruction, configured to receive a cache function adding request, and parse the cache function adding request to obtain a preset identifier of a target system process to which a cache function is to be added; judging whether a target cache function parameter corresponding to the preset identification exists in the current database or not according to the preset identification; and if the target cache function parameter corresponding to the preset identification exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
In some embodiments, the program further includes a second determination instruction for determining whether the target system process has an addition authority for adding a cache function; and if the target system process does not have the adding permission, canceling the cache function adding request.
In some embodiments, the program further includes a parameter entry instruction, configured to pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process if the target system process has the addition permission and the target cache function parameter corresponding to the preset identifier does not exist in the current database, and mark the target system process as a first configuration system process.
In some embodiments, the program further includes a storage instruction, configured to obtain a cache function parameter of the system process configured for the first time, and store the cache function parameter of the system process configured for the first time and a preset identifier in the database after binding.
In some embodiments, the program further includes a decryption instruction, configured to determine whether a target cache function parameter corresponding to the preset identifier exists in the current database, where the target cache function parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key; and when the cache function adding request is judged to contain the decryption key, the decryption key is used for carrying out decryption operation on the encrypted data.
In some embodiments, the program further includes a third determining instruction, configured to cancel the cache function addition request when it is determined that the decryption key is not included in the cache function addition request.
In some embodiments, the program further includes a fourth determination instruction, configured to obtain a decryption result of the decryption operation, and cancel the cache function addition request if the decryption result is decryption failure.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the data processing method according to any of the above embodiments.
It should be noted that, for the data processing method described in this application, it can be understood by a person skilled in the art that all or part of the process of implementing the data processing method described in this application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and during the execution, the process of implementing the data processing method may include the process of the embodiment of the data processing method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the data processing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The data processing method, apparatus, medium, and device provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data processing method, comprising:
detecting current running state information of a target system process added with a cache function, wherein the running state information comprises information of tasks to be processed, which are currently run by the target system, and the information of the tasks to be processed comprises the number of the tasks to be processed and the occupied data volume of the tasks to be processed;
analyzing the task information to be processed according to a preset judgment rule to obtain an analysis result;
and judging whether to close the cache function of the target system process according to the analysis result.
2. The data processing method of claim 1, wherein the determining whether to close the cache function of the target system process according to the analysis result comprises:
if the analysis result indicates that the number of the tasks to be processed does not exceed a first preset threshold value, closing the cache function of the target system process; or
And if the analysis result shows that the occupied data volume of the task to be processed does not exceed a second preset threshold value, closing the cache function of the target system process.
3. The data processing method of claim 1, wherein the first predetermined threshold and the second predetermined threshold are set according to a current system operating resource utilization rate.
4. The data processing method of claim 1, wherein the method further comprises:
receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process to be added with a cache function;
judging whether a target cache function parameter corresponding to the preset identifier exists in a current database or not according to the preset identifier;
and if the target cache function parameter corresponding to the preset identification exists, adding a cache function to the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added to the target system process.
5. The data processing method according to claim 1, wherein before the determining whether the target cache function parameter corresponding to the preset identifier exists in the current database according to the preset identifier, the method further comprises:
judging whether the target system process has an adding authority for adding a cache function;
and if the target system process does not have the adding permission, canceling the cache function adding request.
6. The data processing method of claim 5, wherein after the determining whether the target system process has add permission to add a cache function, the method further comprises:
if the target system process has the adding permission and the target cache function parameter corresponding to the preset identification does not exist in the current database, popping up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and marking the target system process as a first configuration system process;
and acquiring the cache function parameter of the first configuration system process, binding the cache function parameter of the first configuration system process with a preset identifier, and storing the bound cache function parameter in the database.
7. The data processing method of claim 1, wherein the method further comprises:
when determining that a target cache function parameter corresponding to the preset identification exists in the current database, judging whether the target cache parameter is encrypted data or not;
if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key;
and when the cache function adding request is judged to contain the decryption secret key, the decryption secret key is used for carrying out decryption operation on the encrypted data.
8. A data processing apparatus, characterized in that the data processing apparatus comprises:
the system comprises a state detection module, a cache function module and a cache module, wherein the state detection module is used for detecting current running state information of a target system process added with the cache function, the running state information comprises to-be-processed task information of the current running of the target system, and the to-be-processed task information comprises the number of to-be-processed tasks and the occupied data volume of the to-be-processed tasks;
the information analysis module is used for analyzing the to-be-processed task information according to a preset judgment rule to obtain an analysis result;
and the first judgment module is used for judging whether to close the cache function of the target system process according to the analysis result.
9. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the data processing method of any one of claims 1 to 7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the data processing method of any one of claims 1 to 7.
CN202211543117.5A 2022-12-02 2022-12-02 Data processing method, device, medium and equipment Pending CN115757506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211543117.5A CN115757506A (en) 2022-12-02 2022-12-02 Data processing method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211543117.5A CN115757506A (en) 2022-12-02 2022-12-02 Data processing method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN115757506A true CN115757506A (en) 2023-03-07

Family

ID=85343637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211543117.5A Pending CN115757506A (en) 2022-12-02 2022-12-02 Data processing method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN115757506A (en)

Similar Documents

Publication Publication Date Title
US10853437B2 (en) Method and apparatus for invoking application programming interface
CN108039963B (en) Container configuration method and device and storage medium
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
CN109284144B (en) Fast application processing method and mobile terminal
CN108984265B (en) Method and device for detecting virtual machine environment
CN108089935B (en) Application program management method and mobile terminal
CN114428546A (en) Background application cleaning method and device, storage medium and terminal equipment
CN106454953B (en) Flow control method, device and terminal
CN106709330B (en) Method and device for recording file execution behaviors
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN115589432A (en) Message push management method, device, medium and equipment
CN109145182B (en) Data acquisition method and device, computer equipment and system
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN114338770A (en) Cross-block-chain data processing method and device, storage medium and terminal equipment
CN110856173B (en) Network access method and device and electronic equipment
CN115757506A (en) Data processing method, device, medium and equipment
CN110955468A (en) Method and device for calling operation entrance and electronic equipment
CN116301578A (en) Parameter configuration method, device, medium and equipment for cache function
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN116582585B (en) Message pushing method, device, medium and equipment
US9471782B2 (en) File scanning method and system, client and server
CN112565284B (en) Access control method and device for components in application program and electronic equipment
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN111488123B (en) Storage space management method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination