Data storage method and device based on software storage architecture
By detecting and waiting for storage in the data storage process to meet the storage requirements, the integrity problems caused by conflicts in the data storage process are solved, and the reliability and timeliness of data are ensured.
Patent Information
- Application Number
- CN202410983668.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
AI Technical Summary
In the data storage process, conflicts between new and old storage events may lead to data corruption or loss, and how to ensure the integrity of the data has become an urgent problem.
When receiving the storage request, the data is stored in the cache area and the current state of the software storage architecture meets the storage requirements. If it is not met, the status information is read and wait for it to be satisfied within the preset time period before storage is ensured to ensure that the data is Persistent storage when conditions are met.
Through this method, the integrity and timeliness of data in the stored procedure are ensured, data corruption or loss caused by conflicts is avoided, and the reliability of data storage is improved.
Smart Images

Figure CN118940322A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a data storage method and device based on a software storage architecture. Background Art
[0002] In recent years, with the upgrading of automobile technology and the increasing complexity of in-vehicle control functions, the functions that need to be implemented by vehicle controllers have become more detailed, the complexity and coupling of software integration have continued to increase, and the storage requirements for software have also increased to a great extent.
[0003] At present, the data storage process generally sets up two objects, the storage control requester and the storage control executor. The storage control requester and the storage control executor agree on a unified interface function. The storage control requester calls the interface function to send a data storage request, and the storage control executor executes the data storage process. When a storage event is being executed, a new storage event occurs. If the new storage event and the ongoing storage event involve the same data or resources, a conflict may occur. This may cause data corruption or data loss.
[0004] Therefore, how to ensure the integrity of data during data storage has become an urgent problem to be solved in this field. Summary of the invention
[0005] The present application provides a data storage method and device based on a software storage architecture, the purpose of which is to ensure the integrity of data during the data storage process.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A data storage method based on software storage architecture, comprising:
[0008] When receiving a storage request carrying data to be stored, storing the data to be stored in a data cache area;
[0009] Check whether the current state of the software storage architecture meets the data storage requirements;
[0010] If the current state does not meet the data storage requirement, reading the current state information of the software storage architecture;
[0011] Detecting whether the current status information meets the data storage requirement within a preset time period;
[0012] If the current state information meets the data storage requirement within the preset time period, an interface function is called to store the data to be stored in the data buffer area into a corresponding storage area.
[0013] Optionally, the detecting whether the current state information meets the data storage requirement within a preset time period includes:
[0014] When the current status information is the voltage of the power supply system, detecting whether the voltage is greater than a preset minimum voltage;
[0015] If the voltage is not greater than the preset minimum voltage, determining that the current state information does not meet the data storage requirement within the preset time period;
[0016] If the voltage is greater than the preset minimum voltage, it is determined that the current state information meets the data storage requirement within the preset time period.
[0017] Optionally, the detecting whether the current state information meets the data storage requirement within a preset time period includes:
[0018] When the current state information is a current storage request, setting a preset storage duration; the current storage request indicates a request to store current cached data;
[0019] Reading the data storage duration from the current storage request information;
[0020] Detecting whether the data storage time is greater than the preset storage time;
[0021] If the data storage time is not greater than the preset storage time, it is determined that the current state information meets the data storage requirement within the preset time period.
[0022] Optionally, also include:
[0023] If the data storage duration is longer than the preset storage duration, deleting the current storage request in the request buffer; the current storage request is pre-stored in the request buffer;
[0024] When the current storage request information is deleted, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
[0025] Optionally, also include:
[0026] If the current state meets the data storage requirements, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
[0027] A data storage device based on a software storage architecture, comprising:
[0028] A first storage unit, configured to store the data to be stored in a data buffer area when receiving a storage request carrying the data to be stored;
[0029] A first detection unit, used to detect whether the current state of the software storage architecture meets the data storage requirements;
[0030] a reading unit, configured to read current state information of the software storage architecture if the current state does not meet the data storage requirement;
[0031] A second detection unit, used to detect whether the current state information meets the data storage requirement within a preset time period;
[0032] The second storage unit is used to call an interface function to store the data to be stored in the data buffer area into a corresponding storage area if the current state information meets the data storage requirement within the preset time period.
[0033] Optionally, the second detection unit is specifically used for:
[0034] When the current status information is the voltage of the power supply system, detecting whether the voltage is greater than a preset minimum voltage;
[0035] If the voltage is not greater than the preset minimum voltage, determining that the current state information does not meet the data storage requirement within the preset time period;
[0036] If the voltage is greater than the preset minimum voltage, it is determined that the current state information meets the data storage requirement within the preset time period.
[0037] Optionally, the second detection unit is specifically used for:
[0038] When the current state information is a current storage request, setting a preset storage duration; the current storage request indicates a request to store current cached data;
[0039] Reading the data storage duration from the current storage request information;
[0040] Detecting whether the data storage time is greater than the preset storage time;
[0041] If the data storage time is not greater than the preset storage time, it is determined that the current state information meets the data storage requirement within the preset time period.
[0042] Optionally, also include:
[0043] A deleting unit, configured to delete a current storage request in the request buffer if the data storage duration is greater than the preset storage duration; the current storage request is pre-stored in the request buffer;
[0044] The data calling unit is used to call the interface function to store the data to be stored in the data buffer area into the corresponding storage area after the current storage request information is deleted.
[0045] Optionally, also include:
[0046] The data storage unit is used to call an interface function to store the data to be stored in the data buffer area into a corresponding storage area if the current state meets the data storage requirements.
[0047] The technical solution provided by the present application, when receiving a storage request carrying data to be stored, stores the data to be stored in the data cache area; detects whether the current state of the software storage architecture meets the data storage requirements; if the current state does not meet the data storage requirements, reads the current state information of the software storage architecture; detects whether the current state information meets the data storage requirements within a preset time period; if the current state information meets the data storage requirements within the preset time period, calls the interface function to store the data to be stored in the data cache area into the corresponding storage area. In the present application, when a new storage event occurs during the execution of a storage event, it will continue to wait for a period of time until the current state information meets the data storage requirements, and then the data to be stored will be stored, thereby ensuring the integrity of the data to be stored during the storage process. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A flowchart of a data storage method based on a software storage architecture provided in an embodiment of the present application;
[0050] Figure 2 A flowchart of a method for detecting status information provided in an embodiment of the present application;
[0051] Figure 3 A flowchart of another method for detecting status information provided in an embodiment of the present application;
[0052] Figure 4 A schematic diagram of a data storage provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of another data storage provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of the architecture of a data storage device based on a software storage architecture provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0057] like Figure 1 As shown, it is a flowchart of a data storage method based on a software storage architecture provided in an embodiment of the present application, which is applied to an arbitration layer management module and includes the following steps:
[0058] S101: When a storage request carrying data to be stored is received, the data to be stored is stored in a data buffer area.
[0059] Optionally, the data cache area includes but is not limited to: ShadowData I (I=1, 2, 3...).
[0060] It should be noted that when a storage request carrying data to be stored is received, the storage request needs to be stored in the request cache (i.e. ShadowRequest I (I=1, 2, 3...)) to avoid the loss of the storage request when the data cannot be cached. By storing the storage request in the request cache, the integrity of the data can be ensured.
[0061] It can be understood that the application layer (i.e., Application) sends a storage request carrying the data to be stored to the arbitration layer management module (i.e., Manager module). When the Manager module receives the storage request carrying the data to be stored, it stores the data to be stored in the data cache area, and stores the storage request in the request cache area.
[0062] It should be emphasized that the Manager module mainly receives request information from the application layer and makes status judgments. Usually, when the application layer has a request, it will send 1 for 3-5 cycles and then clear it to 0. The Manager module knows that the application layer needs storage. The Manager module will periodically update the data to the cache without making status judgments.
[0063] S102: Detect whether the current state of the software storage architecture meets the data storage requirements.
[0064] If the current state does not meet the data storage requirements, execute step S103.
[0065] The data storage requirements include but are not limited to: the voltage of the power supply system is not greater than the preset voltage, and there is no data being stored.
[0066] It is understandable that whether the current state of the software storage architecture meets the data storage requirements is detected. Since the software storage architecture includes the operating status of each module, it is possible to determine whether the current state meets the data storage requirements by detecting the current state of the software storage architecture.
[0067] It should be noted that detecting whether the current state of the software storage architecture meets the data storage requirements is to determine whether the current state of the software storage architecture can execute the process of storing data.
[0068] Optionally, after step S102, the method further includes:
[0069] If the current state meets the data storage requirements, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
[0070] The interface functions include but are not limited to: Write function.
[0071] It can be understood that if the current state meets the data storage requirements, that is, the current state is: the voltage of the power supply system is not greater than the preset voltage, and there is no data being stored, then the interface function is called to store the data to be stored in the data cache area to the corresponding storage area.
[0072] S103: Read the current status information of the software storage architecture.
[0073] The current status information includes but is not limited to: the voltage of the power supply system.
[0074] It is understandable that if the current status does not meet the data storage requirements, then the current status information of the software storage architecture is read. On the one hand, the current status information can be used to understand which aspects have problems, which is conducive to identifying problems and formulating corresponding solutions. On the other hand, the current status can help analyze its impact on the business.
[0075] It should be noted that reading the current status information of the software storage architecture is to read the restrictions of each module. If the restrictions of the module do not allow data to be stored, the data storage step cannot be performed.
[0076] S104: Detect whether the current status information meets the data storage requirement within a preset time period.
[0077] If the current status information meets the data storage requirement within the preset time period, step S105 is executed.
[0078] Optionally, the preset time period can be set according to actual conditions and is not specifically limited here, for example, 1 minute.
[0079] It can be understood that if the current state does not meet the data storage requirements, the current state information of the software storage architecture is read to detect whether the current state information meets the data storage requirements within the preset time period. That is, when the current state does not meet the data storage requirements, it will continue to wait for a period of time until the current state information meets the data storage requirements, and then the data storage operation is executed; if the current state information does not meet the data storage requirements within the preset time period, then the data storage operation cannot be performed.
[0080] Optionally, in another embodiment of the present application, the specific implementation of step S104 is as follows: Figure 2 As shown, including:
[0081] S201: When the current status information is the voltage of the power supply system, detect whether the voltage is greater than a preset minimum voltage.
[0082] If the voltage is not greater than the preset minimum voltage, step S202 is executed; if the voltage is greater than the preset minimum voltage, step S203 is executed.
[0083] Specifically, assuming that the preset minimum voltage is 220V, and the voltage of the power supply system is 230V, it is detected whether the voltage of the power supply system is greater than the preset minimum voltage. Obviously, the voltage of the power supply system is greater than the preset minimum voltage, so continue to execute step S203.
[0084] Specifically, assuming that the preset minimum voltage is 220V, and the voltage of the power supply system is 200V, it is detected whether the voltage of the power supply system is greater than the preset minimum voltage. Obviously, the voltage of the power supply system is less than the preset minimum voltage. Therefore, step S202 is continued.
[0085] S202: Determine that the current state information does not meet the data storage requirement within a preset time period.
[0086] It should be noted that if the voltage is not greater than the preset minimum voltage, it means that the voltage of the power supply system is too low at this time, and it will immediately enter sleep mode (i.e., the shutdown process). After entering the sleep state, the data storage step cannot be executed, and it is determined that the current status information does not meet the data storage requirements within the preset time period.
[0087] S203: Determine whether the current status information meets the data storage requirement within a preset time period.
[0088] It should be noted that if the voltage is not greater than the preset minimum voltage, it means that the voltage of the power supply system meets the data storage requirements at this time. At this time, the data storage step can be executed to determine whether the current status information meets the data storage requirements within the preset time period.
[0089] Optionally, in another embodiment of the present application, the specific implementation of step S104 is as follows: Figure 3 As shown, including:
[0090] S301: When the current status information is a current storage request, a preset storage duration is set.
[0091] The current storage request indicates a request to store the current cache data.
[0092] It is understandable that when the current status information is the current storage request, it means that there is data being stored at this time, that is, the previous data storage request has not been executed. At this time, in order to avoid too long waiting time, it is necessary to set a preset storage duration (that is, a reasonable timeout duration).
[0093] It should be noted that, in order to ensure the rationality of the preset storage duration, a maximum value is usually set based on the results of a pre-test, and the maximum value is used as the preset storage duration.
[0094] S302: Reading data storage duration from current storage request information.
[0095] The data storage duration indicates the duration for which the data is stored in the storage area.
[0096] It should be noted that by reading the data storage duration from the current storage request information, on the one hand, the data storage duration can be used to determine whether the current storage request information exceeds the preset storage duration. On the other hand, the data storage duration can also be used to determine whether the data retention time is sufficient to meet the requirements of subsequent processing and analysis.
[0097] S303: Detect whether the data storage time is greater than the preset storage time.
[0098] If the data storage time is not greater than the preset storage time, step S304 is executed.
[0099] Specifically, assuming that the data storage time is 10 seconds and the preset storage time is 15 seconds, check whether the data storage time is greater than the preset storage time. Obviously, the data storage time is less than the preset storage time, so continue to execute step S304.
[0100] Optionally, after step S303, the method further includes:
[0101] If the data storage duration is longer than the preset storage duration, the current storage request in the request buffer is deleted.
[0102] The current storage request is pre-stored in the request buffer.
[0103] It should be noted that, when a current storage request is received, the current cache data in the current storage request is stored in the data cache area, and the current storage request is stored in the request cache area.
[0104] It is understandable that if the data storage time is longer than the preset storage time, in order to ensure the timeliness of the data, it is necessary to delete the current storage request in the request buffer area. After deleting the current storage request, the step of storing the data to be stored can be executed.
[0105] When the current storage request information is deleted, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
[0106] It is understandable that, after the current storage request information is deleted, the Write function is called to store the data to be stored in the data buffer area into the corresponding storage area.
[0107] S304: Determine whether the current status information meets the data storage requirement within a preset time period.
[0108] It is understandable that if the data storage time is not greater than the preset storage time, it means that the step of storing the data to be stored can be performed at this time, and it is determined that the current state information meets the data storage requirements within the preset time period.
[0109] S105: Calling an interface function to store the data to be stored in the data buffer area into a corresponding storage area.
[0110] It should be noted that the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area. By storing the data from the buffer area to the persistent storage area, it is ensured that the data will not be lost in the event of system restart, failure or other abnormal conditions. This can ensure the reliability and integrity of the data and avoid business losses caused by data loss.
[0111] In combination with the process shown in step S101 to step S105, an example is given in combination with a specific application scenario, including: the manager module receives data storage requests from each application layer (i.e., Application) and judges the request flag. If there is no request information, it continues to monitor, and the monitoring cycle is 10ms; it judges whether storage is currently allowed. If storage is allowed, the data is stored. If storage is not allowed, it continues to wait until data storage is allowed.
[0112] See also Figure 4 , shows a schematic diagram of data storage, Step I: the module stores the requests of different Application I (I=1,2,3…) into ShadowRequest I (I=1,2,3…), and stores the data Data into ShadowDataI (I=1,2,3…); Step II: the Manager module determines whether the current state meets the data storage requirements, if the current state allows data storage, the software enters the next stage; Step III: call the underlying interface Write function to store the data in the corresponding area.
[0113] See also Figure 5 , shows a schematic diagram of another data storage, Step I: the module stores the requests of different Application I (I=1,2,3…) in ShadowRequest I (I=1,2,3…), and stores the data Data in ShadowData I (I=1,2,3…); Step II: the Manager module determines whether the current state meets the data storage requirements. If the current state does not allow the data storage software to enter the next stage, Step III: obtain the current state information of the software storage architecture, and continue to wait until the current state information meets the data storage requirements, Step IV: call the underlying interface function to store the data in the corresponding area.
[0114] To summarize, when a new storage event occurs during the execution of a storage event, it will continue to wait for a period of time until the current status information meets the data storage requirements, and then the data to be stored will be stored. If the data storage requirements are still not met after a period of time, the data storage request being executed will be deleted, and then the data to be stored will be stored. This not only ensures the integrity of the data to be stored during the storage process, but also ensures the timeliness of the data in the storage area.
[0115] like Figure 6 As shown, it is an architectural schematic diagram of a data storage device based on a software storage architecture provided in an embodiment of the present application, and the data storage device includes: a first storage unit 100, a first detection unit 200, a reading unit 300, a second detection unit 400 and a second storage unit 500.
[0116] The first storage unit 100 is configured to store the data to be stored in a data buffer area when receiving a storage request carrying the data to be stored.
[0117] The first detection unit 200 is used to detect whether the current state of the software storage architecture meets the data storage requirements.
[0118] The reading unit 300 is used to read the current state information of the software storage architecture if the current state does not meet the data storage requirements.
[0119] The second detection unit 400 is used to detect whether the current state information meets the data storage requirement within a preset time period.
[0120] The second detection unit 400 is specifically used for: when the current state information is the voltage of the power supply system, detecting whether the voltage is greater than the preset minimum voltage; if the voltage is not greater than the preset minimum voltage, determining that the current state information does not meet the data storage requirements within the preset time period; if the voltage is greater than the preset minimum voltage, determining that the current state information meets the data storage requirements within the preset time period.
[0121] The second detection unit 400 is specifically used for: when the current status information is a current storage request, setting a preset storage duration; the current storage request indicates a request to store the current cached data; reading the data storage duration from the current storage request information; detecting whether the data storage duration is greater than the preset storage duration; if the data storage duration is not greater than the preset storage duration, determining that the current status information meets the data storage requirements within the preset time period.
[0122] The second storage unit 500 is used to call the interface function to store the data to be stored in the data buffer area into the corresponding storage area if the current state information meets the data storage requirement within a preset time period.
[0123] To summarize, when a new storage event occurs during the execution of a storage event, it will continue to wait for a period of time until the current status information meets the data storage requirements, and then the data to be stored will be stored. If the data storage requirements are still not met after a period of time, the data storage request being executed will be deleted, and then the data to be stored will be stored. This not only ensures the integrity of the data to be stored during the storage process, but also ensures the timeliness of the data in the storage area.
[0124] Preferably, combined Figure 6 As shown in the figure, the data storage device also includes: a deletion unit and a data calling unit.
[0125] A deleting unit, configured to delete a current storage request in the request buffer if the data storage duration is greater than a preset storage duration; the current storage request is pre-stored in the request buffer;
[0126] The data calling unit is used to call the interface function to store the data to be stored in the data buffer area into the corresponding storage area after the current storage request information is deleted.
[0127] Preferably, combined Figure 6 The content shown, the data storage device also includes: a data storage unit, which is used to call the interface function to store the data to be stored in the data cache area into the corresponding storage area if the current state meets the data storage requirements.
[0128] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0129] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data storage method based on software storage architecture, characterized in that: include: When receiving a storage request carrying data to be stored, storing the data to be stored in a data cache area; Check whether the current state of the software storage architecture meets the data storage requirements; If the current state does not meet the data storage requirement, reading the current state information of the software storage architecture; Detecting whether the current status information meets the data storage requirement within a preset time period; If the current state information meets the data storage requirement within the preset time period, an interface function is called to store the data to be stored in the data buffer area into a corresponding storage area.
2. The method according to claim 1, characterized in that The detecting whether the current state information meets the data storage requirement within a preset time period includes: When the current status information is the voltage of the power supply system, detecting whether the voltage is greater than a preset minimum voltage; If the voltage is not greater than the preset minimum voltage, determining that the current state information does not meet the data storage requirement within the preset time period; If the voltage is greater than the preset minimum voltage, it is determined that the current state information meets the data storage requirement within the preset time period.
3. The method according to claim 1, characterized in that: The detecting whether the current state information meets the data storage requirement within a preset time period includes: When the current state information is a current storage request, setting a preset storage duration; the current storage request indicates a request to store current cached data; Reading the data storage duration from the current storage request information; Detecting whether the data storage time is greater than the preset storage time; If the data storage time is not greater than the preset storage time, it is determined that the current state information meets the data storage requirement within the preset time period.
4. The method according to claim 3, characterized in that Also includes: If the data storage duration is longer than the preset storage duration, deleting the current storage request in the request buffer; The current storage request is pre-stored in the request buffer; When the current storage request information is deleted, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
5. The method according to claim 1, characterized in that Also includes: If the current state meets the data storage requirements, the interface function is called to store the data to be stored in the data buffer area into the corresponding storage area.
6. A data storage device based on a software storage architecture, characterized in that: include: A first storage unit, configured to store the data to be stored in a data buffer area when receiving a storage request carrying the data to be stored; A first detection unit, used to detect whether the current state of the software storage architecture meets the data storage requirements; a reading unit, configured to read current state information of the software storage architecture if the current state does not meet the data storage requirement; A second detection unit, used to detect whether the current state information meets the data storage requirement within a preset time period; The second storage unit is used to call an interface function to store the data to be stored in the data buffer area into a corresponding storage area if the current state information meets the data storage requirement within the preset time period.
7. The device according to claim 6, characterized in that The second detection unit is specifically used for: When the current status information is the voltage of the power supply system, detecting whether the voltage is greater than a preset minimum voltage; If the voltage is not greater than the preset minimum voltage, determining that the current state information does not meet the data storage requirement within the preset time period; If the voltage is greater than the preset minimum voltage, it is determined that the current state information meets the data storage requirement within the preset time period.
8. The device according to claim 6, characterized in that The second detection unit is specifically used for: When the current state information is a current storage request, setting a preset storage duration; the current storage request indicates a request to store current cached data; Reading the data storage duration from the current storage request information; Detecting whether the data storage time is greater than the preset storage time; If the data storage time is not greater than the preset storage time, it is determined that the current state information meets the data storage requirement within the preset time period.
9. The device according to claim 6, characterized in that Also includes: A deleting unit, configured to delete the current storage request in the request buffer if the data storage duration is greater than the preset storage duration; The current storage request is pre-stored in the request buffer; The data calling unit is used to call the interface function to store the data to be stored in the data buffer area into the corresponding storage area after the current storage request information is deleted.
10. The device according to claim 6, characterized in that Also includes: The data storage unit is used to call an interface function to store the data to be stored in the data buffer area into a corresponding storage area if the current state meets the data storage requirements.
