CN114780559A - Application response method and device, terminal equipment and storage medium - Google Patents

Application response method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114780559A
CN114780559A CN202210336521.9A CN202210336521A CN114780559A CN 114780559 A CN114780559 A CN 114780559A CN 202210336521 A CN202210336521 A CN 202210336521A CN 114780559 A CN114780559 A CN 114780559A
Authority
CN
China
Prior art keywords
application program
data
updating
real
cache data
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
CN202210336521.9A
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.)
Shenzhen Useer Robot Co Ltd
Original Assignee
Shenzhen Useer Robot 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 Shenzhen Useer Robot Co Ltd filed Critical Shenzhen Useer Robot Co Ltd
Priority to CN202210336521.9A priority Critical patent/CN114780559A/en
Publication of CN114780559A publication Critical patent/CN114780559A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application

Abstract

The invention discloses a response method, a response device, terminal equipment and a computer readable storage medium of an application program, wherein the method is applied to a user terminal provided with the application program and comprises the following steps: monitoring a data updating instruction initiated by the application program; detecting whether cache data of the application program exist locally or not according to the data updating instruction; and if the cache data exist locally, updating the application program according to the cache data to finish response. The invention can improve the response speed of the application program and reduce the pressure of the server for the server of the application program.

Description

Application response method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of application response technologies, and in particular, to an application response method and apparatus, a terminal device, and a computer-readable storage medium.
Background
At present, most of Application programs (APPs) acquire relevant data for updating and responding to user operations by requesting an interface of a corresponding server, and a certain time is consumed for both interface response with the server and data transmission, so that the response speed of the APPs to the user operations is easily reduced. In addition, for the server, as the number of times of accessing the request interface by the application APP is greater, the overall response pressure of the server is also correspondingly increased, so that service disconnection is easily caused, the application APP cannot respond to the operation of the user, and the use experience of the user on the application APP is seriously influenced.
Disclosure of Invention
Embodiments of the present invention provide a response method and apparatus for an application program, a terminal device, and a computer-readable storage medium, which are intended to improve a speed of an application program APP in responding to a user operation, improve user experience, and reduce access times to a server, thereby reducing server pressure.
The embodiment of the invention provides a response method of an application program, which is applied to a user terminal provided with the application program, and comprises the following steps:
monitoring a data updating instruction initiated by the application program;
detecting whether cache data of the application program exist locally or not according to the data updating instruction;
and if the cache data exist locally, updating the application program according to the cache data to finish response.
In an embodiment, after the step of detecting whether the cached data of the application program exists locally according to the data updating instruction, the method further includes:
if the cache data does not exist locally, requesting a preset interface to acquire real-time updating data of the application program, wherein the preset interface is an interface of a server corresponding to the application program;
and updating the application program according to the real-time updating data to complete response.
In an embodiment, after the step of requesting the preset interface to obtain the real-time update data of the application program, the method further includes:
and storing the real-time updating data locally as cache data of the application program, and executing the step of updating the application program according to the cache data to finish response when monitoring a new data updating instruction initiated by the application program.
In an embodiment, the step of storing the real-time update data locally as cache data of the application program includes:
packaging the real-time updating data as cache data of the application program;
and storing the cache data obtained by encapsulation in a local cache by taking the application program as an index, and setting the storage deadline of the cache data as the exit time of the application program.
In an embodiment, after the step of packaging the real-time update data as cache data of the application program, the method further includes:
and storing the cache data obtained by encapsulation in a local memory by taking the application program as an index, and setting the storage deadline of the cache data as the unloading time of the application program.
In an embodiment, the method further comprises:
and acquiring real-time updating data of the application program, and updating the cache data of the application program locally according to the real-time updating data.
In one embodiment, the step of obtaining real-time update data of the application program comprises:
and acquiring the resource idle time of the user terminal, and requesting an interface of a server of the application program in the resource idle time to acquire real-time updating data of the application program.
In addition, an embodiment of the present invention further provides an application response apparatus, where the application response apparatus is applied to a user terminal installed with an application, and the application response apparatus includes:
the instruction monitoring module is used for monitoring a data updating instruction initiated by the application program;
the judging module is used for detecting whether cache data of the application program exists locally according to the data updating instruction;
and the program response module is used for updating the application program according to the cache data to complete response when detecting that the cache data exists locally.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the response method of the application program as described above when executing the computer program.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the response method of the application program as described above.
The application program response method provided by the embodiment of the invention is applied to the user terminal provided with the application program, and comprises the following steps: monitoring a data updating instruction initiated by the application program; detecting whether cache data of the application program exist locally or not according to the data updating instruction; and if the cache data exist locally, updating the application program according to the cache data to finish response.
In the embodiment of the invention, whether the installed application program initiates the data updating instruction is continuously monitored in the process of starting operation by the user terminal, so that after the user terminal monitors the data updating instruction, whether cache data of the application program exists locally is detected according to the instruction, and when the user terminal detects that the cache data exists locally, the corresponding updating is directly carried out on the application program according to the cache data so as to complete the current program response.
Compared with the mode that the traditional application program requests the corresponding update data to the interface of the server in real time each time to realize the program response process, the embodiment of the invention stores the cache data locally at the user terminal which is installed and operated with the application program, so that the application program directly reads the cache data from the local to update and respond when needing to perform relevant response.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a hardware architecture diagram of a response device of an application according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a response method of an application according to the present invention;
FIG. 3 is a flowchart illustrating an application specific process according to an embodiment of the application response method of the present invention;
fig. 4 is a functional block diagram of an embodiment of a response apparatus of an application according to the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: the method comprises the steps that whether a data updating instruction is initiated by an installed application program or not is continuously monitored in the process of starting operation of a user terminal, and therefore after the data updating instruction is monitored, the user terminal detects whether cache data of the application program exist locally or not according to the instruction, and when the cache data exist locally, the user terminal directly conducts corresponding updating on the application program according to the cache data so as to complete current program response.
Compared with the mode that the traditional application program requests corresponding update data to the interface of the server in real time each time to realize the program response process, the embodiment of the invention stores the cache data locally at the user terminal for installing and running the application program, so that the application program directly reads the cache data from the local to perform update response when needing to perform relevant response.
As an implementation manner, the terminal device provided in the embodiment of the present invention may be as shown in fig. 1. The terminal device according to the embodiment of the present invention may specifically be a mobile terminal device or a fixed terminal device such as a smart phone, a tablet, a wearable device, and a PC (Personal Computer), and the robot includes: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a computer program may be included in the memory 103, which is a computer-readable storage medium; and the processor 101 may be configured to invoke the computer program stored in the memory 102 and perform the following operations:
monitoring a data updating instruction initiated by the application program;
detecting whether cache data of the application program exist locally or not according to the data updating instruction;
and if the cache data exist locally, updating the application program according to the cache data to finish response.
In an embodiment, the processor 101 may be configured to call the computer program stored in the memory 102, and after performing the detection of whether the cache data of the application program exists locally according to the data updating instruction, further perform the following operations:
if the cache data do not exist locally, requesting a preset interface to acquire real-time updating data of the application program, wherein the preset interface is an interface of a server corresponding to the application program;
and updating the application program according to the real-time updating data to complete response.
In an embodiment, the processor 101 may be configured to call the computer program stored in the memory 102, and after the execution requests the preset interface to obtain the real-time update data of the application program, further perform the following operations:
and storing the real-time updating data locally as cache data of the application program, and executing the step of updating the application program according to the cache data to finish response when monitoring a new data updating instruction initiated by the application program.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
packaging the real-time updating data as cache data of the application program;
and storing the cache data obtained by encapsulation in a local cache by taking the application program as an index, and setting the storage deadline of the cache data as the exit time of the application program.
In an embodiment, the processor 101 may be configured to call the computer program stored in the memory 102, and after performing the packaging of the real-time update data as cache data of the application program, further perform the following operations:
and storing the cache data obtained by packaging in a local memory by taking the application program as an index, and setting the storage deadline of the cache data as the unloading time of the application program.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
and acquiring real-time updating data of the application program, and updating the cache data of the application program locally according to the real-time updating data.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
and acquiring the resource idle time of the user terminal, and requesting an interface of a server of the application program in the resource idle time to acquire real-time updating data of the application program.
Based on the above hardware structure, various embodiments of the response method of the application program of the present invention are proposed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a response method of an application according to a first embodiment of the present invention. The application program response method is applied to the user terminal provided with the application program, and comprises the following steps:
step S10, monitoring a data updating instruction initiated by the application program;
in this embodiment, the user performs corresponding manipulations for the application installed on the user terminal to make the application initiate a data update instruction based on a response to a user operation, so that the user terminal monitors for the data update instruction.
For example, the user terminal may be a smart phone of a user, and when the user performs an interface refresh operation on a display interface output by a screen of the smart phone through an application installed on the smart phone, the application responds to the interface refresh operation to initiate a data update instruction for updating the current display interface. Therefore, the smart phone continuously monitors the data updating instruction in the whole starting and running process.
Step S20, detecting whether cache data of the application program exists locally according to the data updating instruction;
it should be noted that, in this embodiment, when initiating the data update instruction, the application program packages the unique identification information of itself together in the data update instruction.
In this embodiment, when monitoring the application initiated by the application, the user terminal immediately parses the data update instruction to locally detect whether cache data exists for updating the application in response to the data update instruction according to the identification information carried in the data update instruction.
For example, as shown in the application flow shown in fig. 3, when monitoring that the application program responds to an interface refresh operation executed by a user and initiates a data update instruction for updating a currently displayed interface, the smart phone immediately parses the data update instruction to extract unique identification information of the application program, and then detects cache data corresponding to the unique identification information in a local cache and/or a memory, so as to determine whether cache data of the application program exists locally.
Step S30, if it is detected that the cache data exists locally, updating the application program according to the cache data to complete a response.
In this embodiment, if the user terminal detects that the cache data of the application program locally exists, the target update data required for updating the application program is further read from the cache data, so that the target update data is directly used to update the application program to complete a response process of the application program to the user operation.
Optionally, for example, as in the application process shown in fig. 3, after the smartphone determines that the cached data of the application program locally exists, the smartphone directly reads out the target update data currently used for refreshing the display interface of the application program from the cached data, and updates the display interface by using the target update data, thereby completing the response to the interface refresh operation performed by the user.
In this embodiment, a user performs corresponding operations on an application installed on a user terminal to enable the application to initiate a data update instruction based on a response to a user operation, so that the user terminal monitors for the data update instruction; when monitoring the application program initiated by the application program, the user terminal immediately analyzes the data updating instruction so as to locally detect whether cache data for responding to the data updating instruction to update the application program exists according to identification information carried in the data updating instruction; if the user terminal detects that the cache data of the application program locally exists, the target update data required by updating the application program currently is further read from the cache data, so that the target update data is directly used for updating the application program to complete the response process of the application program to the user operation.
Compared with the mode that the traditional application program requests the corresponding update data to the interface of the server in real time each time to realize the program response process, the embodiment of the invention stores the cache data locally at the user terminal which is installed and operated with the application program, so that the application program directly reads the cache data from the local to update and respond when needing to perform relevant response.
Further, based on the above-described first embodiment of the response method of the application program of the present invention, a second embodiment of the response method of the application program of the present invention is proposed.
In this embodiment, in the step S20, after detecting whether cached data of the application program locally exists according to the data updating instruction, the method for responding to an application program according to the present invention may further include:
step S40, if it is detected that the cache data does not exist locally, requesting a preset interface to obtain real-time update data of the application program, where the preset interface is an interface of a server corresponding to the application program;
in this embodiment, if the user terminal detects that cache data of an application does not exist locally, the user terminal obtains real-time update data for updating the application by requesting an interface of a server of the application.
Optionally, for example, if the smart phone determines that cache data of an application does not exist locally, a request is initiated to an interface of a server corresponding to the application, so that the server responds to the request to transmit real-time update data for updating the application to the smart phone through the interface, and the smart phone obtains the real-time update data.
And step S50, updating the application program according to the real-time updating data to complete response.
In this embodiment, after the user terminal obtains the real-time update data for updating the application program through the interface of the server requesting the application program, the user terminal directly uses the real-time update data to update the application program so as to complete the response process of the application program to the user operation.
Optionally, for example, after acquiring the real-time update data, which is transmitted by the server of the application program through the interface and is currently used for refreshing the display interface of the application program, the smart phone directly uses the real-time update data to update the display interface, thereby completing a response to the interface refresh operation executed by the user.
Further, in some possible embodiments, after the step S40, the response method of the application program of the present invention may further include:
step S60, storing the real-time update data locally as cache data of the application program, and when a new data update instruction initiated by the application program is monitored, executing the step of updating the application program according to the cache data to complete response.
In this embodiment, after obtaining the real-time update data through the interface of the server requesting the application program, the user terminal updates the application program by using the real-time update data, and simultaneously further stores the obtained real-time update data locally as cache data of the application program, so that when a subsequent application program initiates a new data update instruction again, the user terminal can directly read target update data from the cache data according to the process of step S30 to update the application program, thereby increasing the response speed of the application program.
It should be noted that, in this embodiment, after the user terminal acquires the real-time update data of the application program through the request interface, in addition to simultaneously using the real-time update data to update the application program and locally storing the real-time update data, the user terminal may certainly store the real-time update data in the local after updating the application program by using the real-time update data, or the user terminal may first store the real-time update data in the local and then use the real-time update data to update the application program.
Optionally, for example, as in the application process shown in fig. 3, after determining that cache data of an application program does not exist locally, so as to obtain real-time update data of the application program by requesting an interface of a server of the application program, the smart phone first stores the real-time update data in a local cache and/or a local storage as the cache data of the application program, and then reads the cache data to update for the application program. Therefore, after the subsequent user executes the interface refreshing operation on the application program again, the smart phone can directly read the cache data for updating by locally detecting the cache data of the application program so as to complete the response to the interface refreshing operation.
Further, in some possible embodiments, in the step S60, the step of "storing the real-time update data locally as cache data of the application" may include:
step S601, packaging the real-time updating data as cache data of the application program;
step S602, storing the cache data obtained by encapsulation in a local cache using the application as an index, and setting a storage deadline of the cache data as an exit time of the application.
In this embodiment, when the user terminal stores the real-time update data transmitted by the server of the application program through the interface locally, the user terminal may select to store the real-time update data in the local cache, that is, the user terminal encapsulates the real-time update data as cache data of the application program, then uses the unique identification information of the application program as an index of the cache data to store the cache data in the local cache, and then, the user terminal also synchronously sets a storage deadline for storing the cache data in the local cache as a quit time for quitting from all processes of the user terminal when the application program finishes the current operation.
Therefore, the user terminal can ensure that the application program can read the cache data of the application program from the local cache for updating in the whole operation process, and the response speed of the application program is improved.
Further, in other possible embodiments, when the user terminal stores the real-time update data transferred by the server of the application program through the interface locally, the user terminal may also choose to store the real-time update data in the local storage. After the step S601, the response method of the application program of the present invention may further include:
step S603, storing the cache data obtained by encapsulation in a local memory with the application program as an index, and setting a storage deadline of the cache data as an uninstallation time of the application program.
In this embodiment, after the user terminal encapsulates the real-time update data as the cache data of the application program, the unique identification information of the application program is further used as an index of the cache data to store the cache data in the local storage, and at this time, the storage deadline for storing the cache data in the local storage is also synchronously set as the uninstalling time when the application program is cleaned and uninstalled from the current user terminal.
Therefore, the user terminal can ensure that the cache data of the application program can be read from the local memory for updating in each operation in the whole starting operation process of the application program on the current user terminal, so that the response speed of the application program is improved.
In this embodiment, after the user terminal requests the interface of the server of the application program to obtain the real-time update data, the real-time update data is used to update the application program, and meanwhile, the obtained real-time update data is further stored locally as the cache data of the application program, so that when the subsequent application program initiates a new data update instruction again, the user terminal can directly read the target update data from the cache data according to the process of step S30 to update the application program, thereby improving the intelligence and response speed of the application program in response to the user operation.
Further, a third embodiment of the response method of the application program of the present invention is proposed based on the first embodiment and/or the second embodiment of the response method of the application program of the present invention described above.
In this embodiment, the response method of the application program of the present invention is applied to the sweeping robot itself, and in this case, the response method of the application program of the present invention includes:
and step A, acquiring real-time updating data of the application program, and locally updating cache data of the application program according to the real-time updating data.
In this embodiment, since the application program is updated along with the iteration of its version, the data used for updating in response to the user operation is also updated accordingly, so that the user terminal can periodically obtain the real-time update data of the application program, and then perform corresponding update processing on the stored cache data of the application program locally based on the real-time update data.
It should be noted that, in this embodiment, the process of the user terminal using the real-time update data to update the cache data may be to replace, by using the real-time update data, old data that is different from the cache data.
Further, in some possible embodiments, in the step a, the step of "obtaining real-time update data of the application" may include:
and acquiring the resource idle time of the user terminal, and requesting an interface of a server of the application program in the resource idle time to acquire real-time updating data of the application program.
In this embodiment, when the user terminal obtains the real-time update data of the application program to update the local cache data of the application program, the user terminal monitors or directly obtains the resource idle time which occupies less system resources in the running process of the user terminal, and then actively requests the interface of the server of the application program in the resource idle time, so that the server responds to the request to transmit the real-time update data of the application program to the user terminal through the interface, and the user terminal obtains the real-time update data and performs update processing on the local cache data of the application program based on the real-time update data in the subsequent process.
In this embodiment, since the application program is updated with the iteration of its version, the data used for updating in response to the user operation is also updated accordingly, so that the user terminal can periodically obtain the real-time update data of the application program, and then perform corresponding update processing on the stored cache data of the application program locally based on the real-time update data.
Therefore, the application program can be ensured to read the latest updated data of the application program all the time in the process of reading the cache data locally for updating so as to respond to the user operation, so that the stability of the application program responding to the user operation is improved on the basis of improving the response speed of the application program, and the use experience of the user is further ensured.
In order to achieve the above object, an embodiment of the present invention further provides an application response device, as shown in fig. 4, where the application response device is applied to a user terminal installed with an application, and the application response device includes:
the instruction monitoring module 10 is configured to monitor a data update instruction initiated by the application program;
the judging module 20 is configured to detect whether cache data of the application program exists locally according to the data updating instruction;
and a program response module 30, configured to update the application program according to the cache data to complete a response when detecting that the cache data exists locally.
Optionally, the program response module 30 is further configured to request a preset interface to obtain real-time update data of the application program when detecting that the cache data does not exist locally, where the preset interface is an interface of a server corresponding to the application program; and updating the application program according to the real-time updating data to complete the response.
Optionally, the apparatus for responding to an application program of the present invention further includes:
and the data storage module is used for storing the real-time updating data locally as cache data of the application program, and executing the step of updating the application program according to the cache data to finish response when a new data updating instruction initiated by the application program is monitored.
Optionally, a data storage module, comprising:
the data packaging unit is used for packaging the real-time updating data as cache data of the application program;
and the data storage unit is used for storing the cache data obtained by packaging in a local cache by taking the application program as an index, and setting the storage deadline of the cache data as the exit time of the application program.
Optionally, the data storage unit is further configured to store the cache data obtained by encapsulation in a local storage using the application program as an index, and set a storage deadline of the cache data as an uninstalling time of the application program.
Optionally, the response device of the application program of the present invention further includes:
and the data updating module is used for acquiring real-time updating data of the application program and updating the cache data of the application program locally according to the real-time updating data.
Optionally, the data updating module is further configured to obtain resource idle time of the user terminal, and request an interface of the server of the application program during the resource idle time to obtain real-time update data of the application program.
Each functional module of the response device of the application program realizes each step of the response method of the application program when running.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the response method of the application program as described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a network configuration product program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A response method of an application program is applied to a user terminal installed with the application program, and the response method of the application program comprises the following steps:
monitoring a data updating instruction initiated by the application program;
detecting whether cache data of the application program exist locally or not according to the data updating instruction;
and if the cache data exist locally, updating the application program according to the cache data to complete response.
2. The response method of claim 1, wherein after the step of detecting whether the cached data of the application program exists locally according to the data update instruction, the response method further comprises:
if the cache data do not exist locally, requesting a preset interface to acquire real-time updating data of the application program, wherein the preset interface is an interface of a server corresponding to the application program;
and updating the application program according to the real-time updating data to complete response.
3. The response method of claim 2, further comprising, after the step of requesting the default interface to obtain the real-time update data of the application program:
and storing the real-time updating data locally as cache data of the application program, and executing the step of updating the application program according to the cache data to finish response when monitoring a new data updating instruction initiated by the application program.
4. A response method for an application according to claim 3, wherein said step of storing said real-time updated data locally as cached data for said application comprises:
packaging the real-time updating data as cache data of the application program;
and storing the cache data obtained by encapsulation in a local cache by taking the application program as an index, and setting the storage deadline of the cache data as the exit time of the application program.
5. The response method of the application program according to claim 4, further comprising, after the step of encapsulating the real-time update data as cache data of the application program:
and storing the cache data obtained by encapsulation in a local memory by taking the application program as an index, and setting the storage deadline of the cache data as the unloading time of the application program.
6. An application response method according to any one of claims 1 to 5, wherein the method further comprises:
and acquiring real-time updating data of the application program, and locally updating the cache data of the application program according to the real-time updating data.
7. A response method for an application according to claim 6, wherein the step of obtaining real-time update data for the application comprises:
and acquiring the resource idle time of the user terminal, and requesting an interface of a server of the application program in the resource idle time to acquire real-time updating data of the application program.
8. An application response device, which is applied to a user terminal installed with an application, the application response device comprising:
the instruction monitoring module is used for monitoring a data updating instruction initiated by the application program;
the judging module is used for detecting whether cache data of the application program exists locally according to the data updating instruction;
and the program response module is used for updating the application program according to the cache data to complete response when detecting that the cache data exists locally.
9. A terminal device, characterized in that the terminal device comprises: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps of the response method of the application program according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the response method of an application program according to any one of claims 1 to 7.
CN202210336521.9A 2022-03-30 2022-03-30 Application response method and device, terminal equipment and storage medium Pending CN114780559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210336521.9A CN114780559A (en) 2022-03-30 2022-03-30 Application response method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210336521.9A CN114780559A (en) 2022-03-30 2022-03-30 Application response method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114780559A true CN114780559A (en) 2022-07-22

Family

ID=82427264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210336521.9A Pending CN114780559A (en) 2022-03-30 2022-03-30 Application response method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114780559A (en)

Similar Documents

Publication Publication Date Title
US9554292B2 (en) Methods and systems for performance monitoring for mobile applications
CN109542614B (en) Resource allocation method, device, terminal and storage medium
US8984186B2 (en) Augmenting capabilities of a host device
CN103634592A (en) Automatic test method and system for intelligent televisions
CN108874672B (en) Application program exception positioning method, device, equipment and storage medium
CN110968331B (en) Method and device for running application program
US10768947B2 (en) Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium
CN111597065B (en) Method and device for collecting equipment information
CN108959064B (en) Popup window processing method and device for automatic test
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN108023905B (en) Internet of things application system and method
CN114780559A (en) Application response method and device, terminal equipment and storage medium
CN107015874B (en) Data transmission control method, device and terminal
CN106547485B (en) Data migration method and device
CN111367783A (en) Application program testing method and device and electronic equipment
CN111488268A (en) Dispatching method and dispatching device for automatic test
CN115269063A (en) Process creation method, system, device and medium
RU2595763C2 (en) Method and apparatus for managing load on basis of android browser
CN108809763B (en) Network performance parameter acquisition method, terminal device and storage medium
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN111124907A (en) Mobile phone game testing method and device and server
CN111163138B (en) Method, device and server for reducing network load during game
CN112346761B (en) Front-end resource online method, device, system and storage medium
CN117155994B (en) Service registration management method, device, equipment and readable storage medium
CN109995855B (en) Data acquisition method, device and 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