CN112019617B - Data storage method, device and equipment - Google Patents

Data storage method, device and equipment Download PDF

Info

Publication number
CN112019617B
CN112019617B CN202010870927.6A CN202010870927A CN112019617B CN 112019617 B CN112019617 B CN 112019617B CN 202010870927 A CN202010870927 A CN 202010870927A CN 112019617 B CN112019617 B CN 112019617B
Authority
CN
China
Prior art keywords
service
page
data
user
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.)
Active
Application number
CN202010870927.6A
Other languages
Chinese (zh)
Other versions
CN112019617A (en
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.)
Ant Shengxin Shanghai Information Technology Co ltd
Original Assignee
Ant Shengxin Shanghai Information Technology 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 Ant Shengxin Shanghai Information Technology Co ltd filed Critical Ant Shengxin Shanghai Information Technology Co ltd
Priority to CN202010870927.6A priority Critical patent/CN112019617B/en
Publication of CN112019617A publication Critical patent/CN112019617A/en
Application granted granted Critical
Publication of CN112019617B publication Critical patent/CN112019617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification discloses a data storage method, a data storage device and data storage equipment, wherein the method comprises the following steps: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; and storing the read process data to a persistent cache.

Description

Data storage method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data storage method, apparatus, and device.
Background
With the continuous development of computer technology, users can process complex services through terminal devices, for example, users can process insurance services, financial services, fund services, and the like through terminal devices, and in order to guarantee the benefits of both service parties (i.e., service providers and service users), the service processing process of users needs to be recorded.
Taking insurance service as an example, since insurance service may contain many service pages, in the process of processing insurance service, the terminal device may upload traceable data such as user behavior generated by the user processing each service page to the server in real time. Since the complex service may not be successfully processed, the traceable data is uploaded to the server, which results in a large amount of data that is useless for storage by the server, resulting in waste of storage space, and when the traceable data is successfully processed, the data processing efficiency is low. Therefore, it is necessary to provide a scheme for improving the data processing efficiency when backtracking processing is performed on a complex service.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a data storage method, apparatus, and device, so as to provide a scheme for improving data processing efficiency when performing backtracking processing on a complex service.
In order to implement the above technical solution, the embodiments of the present specification are implemented as follows:
in a first aspect, a data storage method provided in an embodiment of the present specification is applied to a terminal device, and the method includes: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identifier corresponding to the service page into a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; and storing the read process data to a persistent cache.
In a second aspect, a data storage method provided in an embodiment of the present specification is applied to a terminal device, and the method includes: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identification of the user and the service identification of the target service, the block chain evidence storing data is obtained from the block chain through the user identification of the user and the service identification of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
In a third aspect, a data storage method provided in an embodiment of this specification is applied to a blockchain node, and the method includes: receiving block chain evidence storing data which are sent by terminal equipment and correspond to the successfully processed target service; generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain; receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service; acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user; and backtracking the target service processed by the user based on the acquired block link evidence storage data.
In a fourth aspect, embodiments herein provide a data storage device, the device comprising: the first acquisition module is used for acquiring process data generated in the process of processing the service page of the target service; the first storage module is used for storing the process data and the page identifier corresponding to the service page into a memory cache; the data reading module is used for reading process data corresponding to the service page from the memory cache according to the page identifier of the service page under the condition that the target service is successfully processed; and the data storage module is used for storing the read process data to the persistent cache.
In a fifth aspect, embodiments of the present specification provide a data storage device, the device comprising: the acquisition module is used for acquiring process data generated in the process of processing the service page of the target service; the storage module is used for storing the process data and the page identifier corresponding to the service page into a memory cache; the reading module is used for reading process data corresponding to the service page from the memory cache according to the page identifier of the service page under the condition that the target service is successfully processed; the uploading module is used for generating block chain evidence storing data based on the service identifier of the target service, the user identifier of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
In a sixth aspect, embodiments herein provide a data storage device, the device comprising: the data receiving module is used for receiving block chain evidence storage data which are sent by the terminal equipment and correspond to the successfully processed target service; the contract generating module is used for generating intelligent contracts based on the target business and deploying the intelligent contracts in a block chain; a request receiving module, configured to receive a data backtracking request, where the data backtracking request includes a user identifier of a user and a service identifier of the target service; the data acquisition module is used for acquiring the intelligent contract based on the service identifier and acquiring the block chain evidence storage data from the block chain based on the intelligent contract and the user identifier of the user; and the backtracking module is used for backtracking the target service processed by the user based on the acquired block link evidence storage data.
In a seventh aspect, an embodiment of the present specification provides a data storage device, where the data storage device includes: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; and storing the read process data to a persistent cache.
In an eighth aspect, an embodiment of the present specification provides a data storage device, where the data storage device includes: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identification of the user and the service identification of the target service, the block chain evidence storing data is obtained from the block chain through the user identification of the user and the service identification of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
In a ninth aspect, an embodiment of the present specification provides a data storage device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to: receiving block chain evidence storage data corresponding to the successfully processed target service sent by the terminal equipment; generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain; receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service; acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user; and backtracking the target service processed by the user based on the acquired block link evidence storage data.
In a tenth aspect, embodiments of the present specification provide a storage medium for storing computer-executable instructions, which when executed implement the following flow: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; and storing the read process data to a persistent cache.
In an eleventh aspect, embodiments of the present specification provide a storage medium for storing computer-executable instructions, which when executed implement the following flow: acquiring process data generated in the process of processing a service page of a target service; storing the process data and the page identification corresponding to the service page to a memory cache; under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page; generating block chain evidence storing data based on the service identifier of the target service, the user identifier of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
In a twelfth aspect, embodiments of the present specification provide a storage medium for storing computer-executable instructions, which when executed implement the following flow: receiving block chain evidence storing data which are sent by terminal equipment and correspond to the successfully processed target service; generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain; receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service; acquiring the intelligent contract based on the service identifier, and acquiring the block chain evidence storage data from the block chain based on the intelligent contract and the user identifier of the user; and backtracking the target service processed by the user based on the acquired block link evidence storage data.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow chart of one embodiment of a data storage method of the present disclosure;
FIG. 2 is a flow chart of yet another embodiment of a data storage method herein;
FIG. 3 is a flow chart of yet another embodiment of a data storage method herein;
FIG. 4 is a flow chart of yet another embodiment of a data storage method herein;
FIG. 5 is a flow chart of yet another embodiment of a data storage method herein;
FIG. 6 is a flow chart of yet another embodiment of a data storage method herein;
FIG. 7 is a schematic diagram of an embodiment of a data storage device according to the present disclosure;
FIG. 8 is a schematic diagram of another embodiment of a data storage device according to the present description;
FIG. 9 is a schematic diagram of another embodiment of a data storage device according to the present disclosure;
FIG. 10 is a schematic structural diagram of yet another data storage device herein;
FIG. 11 is a schematic diagram of another data storage device according to the present disclosure.
Detailed Description
The embodiment of the specification provides a data storage method, a data storage device and data storage equipment.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort shall fall within the protection scope of the present specification.
Example one
As shown in fig. 1, an execution subject of the method may be a terminal device, where the terminal device may be a device such as a personal computer, and may also be a mobile terminal device such as a mobile phone and a tablet computer. The method may specifically comprise the steps of:
in S102, process data generated in the process of processing the service page of the target service is acquired.
The target service may be a financial service such as a fund service (which may include a purchase service such as a fund), an insurance service (which may include a purchase service such as insurance), a purchase service of stocks, or the like, that is, a service requiring a user to perform service processing on a service page, and the target service may be a service requiring a user to store a certificate of a process of processing the target service by the user. The service page may be any one or more service pages required for processing the target service, and the process data may be data that can be used for backtracking the processing process of the service page for the target service, such as behavior data of a user on the service page.
In implementation, with the continuous development of computer technology, a user can process complex services through a terminal device, for example, the user can process insurance services, financial management services, fund services, and the like through the terminal device, and in order to guarantee the benefits of both parties of the services (i.e., a service provider and a service user), the service processing process of the user needs to be recorded. Taking insurance service as an example, since insurance service may contain many service pages, in the process of processing insurance service, the terminal device may upload traceable data such as user behavior generated by the user processing each service page to the server in real time. Since the complex service may not be successfully processed, the traceable data is uploaded to the server, which results in a large amount of data that is useless for storage by the server, resulting in waste of storage space, and when the traceable data is successfully processed, the data processing efficiency is low. Therefore, it is necessary to provide a scheme for improving the data processing efficiency when performing backtracking processing on complex services.
Therefore, the embodiments of the present disclosure provide a technical solution, which can be specifically referred to as the following.
Taking a purchase service with a target service as insurance as an example, a user may trigger the purchase service of insurance in a target application installed in the terminal device for providing the insurance service, and the user may process the target service on a service page corresponding to the insurance service.
The terminal device may obtain device information of the terminal device when detecting that the user triggers the insurance service, and monitor and obtain process data generated by the user in the process of processing the current service page, where the process data may include data such as a type of an operation behavior performed by the user on the service page and a time of the operation behavior (for example, a buried point processing may be performed at a preset position of the service page to obtain the type and time of the operation behavior of the user), and initial page information of the current service page.
In S104, the process data and the page identifier corresponding to the service page are stored in the memory cache.
The memory cache can be a storage space which can be directly addressed by a processor in the terminal equipment, can be made of a semiconductor device, and has the characteristic of high access speed.
In implementation, when the terminal device receives an operation instruction of the user to jump back to a previous service page, the terminal device may acquire process data generated by the user on the previous service page, store the acquired process data in the memory cache, and delete process data corresponding to the previously stored service page. For example, when the user processes the service page 1, the process data 1 is generated, after the user processes the service page 1, the terminal device may jump to the service page 2, and store the process data 1 and the page identifier corresponding to the service page 1 in the memory cache, and if the terminal device receives a back instruction of the user (i.e., an instruction to jump back to the service page 1 again), the terminal device may display the service page 1 again, receive the process data 2 generated by the user at the service page 1, store the process data 2 in the memory cache at a position corresponding to the page identifier of the service page 1, and delete the process data 1 stored in the memory cache.
In addition, after the process data and the page identifier of the corresponding service page are stored in the memory cache, if it is detected that the preset initial service page is restarted (that is, the user selects to reprocess the target service), the service page corresponding to the target service can be acquired, then the process data corresponding to the page identifier of the service page, which is stored in the memory cache, is deleted according to the page identifier of the service page, the process data generated in the process of processing the service page of the target service is acquired again, and the acquired process data and the page identifier of the corresponding service page are stored in the memory cache.
In S106, when it is detected that the target service is successfully processed, the process data corresponding to the service page is read from the memory cache according to the page identifier of the service page.
In implementation, when it is detected that the user clicks the designated button on the designated service page, it may be determined that the target service is successfully processed, or when it is detected that the user has finished processing all service pages corresponding to the target service, it may be determined that the target service is successfully processed. There are various methods for determining whether the target service is successfully processed, and this is not limited in this embodiment of the present specification.
And under the condition that the target service is successfully processed, acquiring the page identifier of the service page, and acquiring the process data corresponding to each service page from the memory cache according to the page identifier of each service page.
In S108, the read process data is stored to a persistent cache.
The persistent cache may be a storage space preset in the terminal device, and the data stored in the storage space is nonvolatile data, that is, the data stored in the persistent cache does not disappear even when the power supply of the terminal device is supplied to the terminal.
In implementation, taking a purchase service with a target service as an insurance as an example, a user may trigger the purchase service of the insurance in a target application installed in the terminal device and used for providing the insurance service, and the user may process the target service on a service page corresponding to the insurance service.
And under the condition that the target service is successfully processed, the application interface of the target application can call a system interface of the terminal equipment, and then the process data corresponding to the service page is stored to the persistent cache through the system interface. In this way, when a data backtracking request of the data backtracking device is received, the target application may obtain a page identifier of a service page corresponding to the target service, and then an application interface of the target application (or an application with backtracking permission) may read process data corresponding to the page identifier of the service page from the persistent cache by calling the system interface of the terminal device again, and send the process data corresponding to the service page to the data backtracking device, so that the data backtracking device performs backtracking processing on the target service.
In addition, after the process data corresponding to the service page is sent to the data backtracking device, in order to improve the data storage efficiency and the data processing efficiency, the process data corresponding to the sent service page may be deleted from the persistent cache, or after receiving a notification of completion of service backtracking by the data backtracking device, the process data corresponding to the sent service page may be deleted from the persistent cache.
The embodiment of the specification provides a data storage method, which includes acquiring process data generated in a process of processing a service page of a target service, storing the process data and a page identifier of a corresponding service page into a memory cache, reading the process data corresponding to the service page from the memory cache according to the page identifier of the service page under the condition that successful processing of the target service is detected, and storing the read process data into a persistent cache. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored to the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
Example two
As shown in fig. 2, an execution subject of the method may be a terminal device, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone and a tablet computer. The method may specifically comprise the steps of:
in S202, when processing for the service page of the target service is detected, a page identifier of the service page is generated.
In implementation, the page identifier of the service page may be generated according to the page position sequence of the service page in the target service, or the page identifier of the service page may be generated according to the page content included in the service page, and there may be a variety of methods for generating the page identifier of the service page, which is not specifically limited in this specification.
After the page identifier of the service page is generated, process data generated in the process of processing the service page of the target service may be acquired, where the process data may include user behavior data generated in the process of processing the service page of the target service and target information corresponding to the service page. That is, after S202, S204 to S206 may be continuously executed.
The user behavior data may include data related to user behavior generated when the user processes the target service in the service page, for example, the user behavior data may include data such as operation behavior data (e.g., type of operation behavior, time of operation behavior) of the user in the service page, and device information of the terminal device used by the user, the target information may include initial page information of the service page, and change information of page elements (e.g., a preset information display area included in the service page) in the service page during processing of the target service and page content change data generated by user behavior on the service page, for example, the user performs a click operation on a preset button in the service page and inputs related user information in a preset input box, and the terminal device responds to the click operation, the preset picture content displayed in the preset display area is updated to be the preset text content, and the target information may include the service page information (i.e., the initial page information) before the click operation is received, the change information of the preset display area (i.e., the preset text content is updated from the preset picture content), and the related user information input by the user in the preset input box.
In S204, based on the page identifier, a user behavior monitoring task for the service page and a recording task for the target information are generated.
In implementation, in order to improve the information acquisition efficiency, a user behavior monitoring task for a service page and a recording task for target information may be generated according to a preset page type of the service page. For example, the target business may include an information presentation class page, an information filling class page, and an information submission class page.
For the information display page, the user behavior monitoring task may include a behavior monitoring task of clicking a preset button by a user, and the recording task for the target information may include a recording task of initial information of the service page and a recording task of change information of a page element in the service page in the target service processing process.
The user behavior monitoring task may include a click operation of a user on a preset button, an information input operation on a preset information input box, a selection operation on a certain option in a preset information selection box, and the like for the information filling-in type page, and the recording task for the target information may include a recording task of initial information of a service page, and a recording task of input information and selection information of the user on the service page.
For the information submission-type page, the user behavior monitoring task may include a click operation of a user on a preset button, and the recording task for the target information may include a recording task of initial information of the service page.
The page type of the service page can be determined according to the page identifier, and then the corresponding user behavior monitoring task and the recording task aiming at the target information are determined according to the page type of the service page.
In S206, the task is monitored based on the user behavior, user behavior data generated in the process of processing the service page is acquired, and target information corresponding to the service page is acquired based on the recording task.
In S208, first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page, and a page identifier corresponding to the service page are stored in a memory cache.
In implementation, the acquired first user behavior data, the first target information, and the page identifier of the corresponding service page may be stored in the memory cache in real time.
In S210, based on the second user behavior data generated in the process of processing the service page and the first user behavior data, the user behavior data corresponding to the service page is determined.
In S212, target information corresponding to the service page is determined based on the first target information and second target information generated in the process of processing the service page.
The second user behavior data and the second target information may be behavior data and target information generated after the first user behavior data and the first target information.
In implementation, the stored first user behavior data and the first target information may be read from the memory cache, and then the first user behavior data and the second user behavior data are integrated to obtain user behavior data generated in the process of processing the service page.
In S214, the user behavior data, the target information, and the page identifier of the corresponding service page are stored in the memory cache, and the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache are deleted.
In implementation, in the memory cache, the first user behavior data may be subjected to overlay processing by the user behavior data, and the first target information may be subjected to overlay processing by the target information.
After S214, S216 or S218 may be continuously executed according to the processing result of the target service, that is, in a case where the target service is successfully processed, S218 may be continuously executed, and in a case where the target service is not successfully processed, S216 may be continuously executed.
In S216, on the condition that it is detected that the target service is not successfully processed, based on a preset clearing period, the user behavior data and the target information corresponding to the service page are deleted from the memory cache.
In implementation, when it is detected that the user closes all service pages corresponding to the target service, the user behavior data and the target information corresponding to the service pages may be deleted from the memory cache based on a preset clearing period (e.g., 1 day, 1 week, etc.), that is, after it is detected that the user closes all service pages corresponding to the target service, 1 week later, the user behavior data and the target information corresponding to the service pages of the target service may be deleted from the memory cache.
Or, in the case that a click operation of a user on a preset button (e.g., an end target service button) of a preset service page is detected, the user behavior data and the target information corresponding to the service page of the target service may also be deleted from the memory cache based on a preset clearing period.
In S218, in the case that the target service processing is detected to be successful, the process data corresponding to the service page is read from the memory cache according to the page identifier of the service page.
In S220, the read process data is stored to a persistent cache.
For the specific processing procedures of S218 to S220, reference may be made to the relevant contents of S106 to S108 in the first embodiment, which are not described herein again.
In S222, according to the page identifier of the service page, the user behavior data and the target information corresponding to the service page are read from the persistent cache, and the read user behavior data and the read target information, the service identifier of the target service, and the user identifier of the user are sent to the server, so that the server performs backtracking processing on the target service based on the user behavior data and the target information corresponding to the service page.
In implementation, under the condition that the target service is successfully processed, the user behavior data and the target information corresponding to each service page included in the target service are obtained from the persistent cache, and the user behavior data and the target information corresponding to each service page included in the target service, the service identifier of the target service and the user identifier of the user are sent to the server, so that the server can be prevented from storing useless data, and the data storage efficiency of the server and the data processing efficiency during backtracking processing are improved.
In S224, after the user behavior data and the target information corresponding to each service page included in the target service are sent to the server, the user behavior data and the target information corresponding to each service page included in the target service are deleted from the persistent cache.
The embodiment of the present specification provides a data storage method, which includes acquiring process data generated in a process of processing a service page of a target service, storing the process data and a page identifier corresponding to the service page into a memory cache, reading the process data corresponding to the service page from the memory cache according to the page identifier of the service page when it is detected that the target service is successfully processed, and storing the read process data into a persistent cache. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored to the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
EXAMPLE III
As shown in fig. 3, an execution subject of the method may be a terminal device, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone and a tablet computer. The method may specifically comprise the steps of:
in S302, process data generated in the process of processing the service page of the target service is acquired.
In S304, the process data and the page identifier of the corresponding service page are stored in the memory cache.
In S306, under the condition that the target service is successfully processed, the process data corresponding to the service page is read from the memory cache according to the page identifier of the service page.
In S308, block chain credential data is generated based on the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, and the block chain credential data is uploaded to a predetermined block chain, so that when the data backtracking device receives a data backtracking request including the user identifier of the user and the service identifier of the target service, the block chain credential data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is performed based on the block chain credential data.
In implementation, the data backtracking device may determine block chain evidence storing data corresponding to the user identifier of the user and the service identifier of the target service based on the user identifier of the user and the service identifier of the target service, and then perform backtracking processing on a process of processing a service page of the target service by the user through process data in the block chain evidence storing data.
The blockchain credential data may be a service identifier of the target service, a user identifier of the user, and process data corresponding to the service page, or the blockchain credential data may be data obtained by encrypting the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page by using a preset encryption key (e.g., an encryption key generated by the blockchain according to the user identifier of the user), or the blockchain credential data may also include verifiable information generated by using a preset verification algorithm (e.g., by using a preset hash algorithm) based on the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, and the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page.
After the block chain evidence storing data is uploaded to the preset block chain, the block chain evidence storing data can be deleted from the memory cache, so that the utilization rate of the storage space is improved.
The embodiment of the specification provides a data storage method, which includes acquiring process data generated in a process of processing a service page of a target service, storing the process data and a page identifier of a corresponding service page into a memory cache, reading the process data corresponding to the service page from the memory cache according to the page identifier of the service page when successful processing of the target service is detected, generating block chain certificate data based on the service identifier of the target service, a user identifier of a user and the process data corresponding to the service page, uploading the block chain certificate data to a preset block chain, so that when a data backtracking device receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain certificate data is acquired from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the generated block chain certificate storage data can be uploaded to the preset block chain, so that waste of data storage space can be avoided, authenticity of the block chain certificate storage data is guaranteed, and data processing efficiency during backtracking processing of the target service is improved.
Example four
As shown in fig. 4, an execution subject of the method may be a terminal device, where the terminal device may be a device such as a personal computer, and may also be a mobile terminal device such as a mobile phone and a tablet computer. The method may specifically comprise the steps of:
in S402, in the case that processing is detected for the service page of the target service, a page identifier of the service page is generated.
In S404, based on the page identifier, a user behavior listening task for the service page and a recording task for the target information are generated.
In S406, based on the user behavior monitoring task, user behavior data generated in the process of processing on the service page is acquired, and based on the recording task, target information corresponding to the service page is acquired.
In S408, first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page, and a page identifier corresponding to the service page are stored in a memory cache.
In S410, based on the second user behavior data generated in the process of processing the service page and the first user behavior data, the user behavior data corresponding to the service page is determined.
In S412, the destination information corresponding to the business page is determined based on the second destination information generated in the process of processing the business page and the first destination information.
In S414, the user behavior data, the target information, and the page identifier of the corresponding service page are stored in the memory cache, and the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache are deleted.
After the execution of S414, S416 or S418 may be continuously executed according to the processing result of the target service, that is, when the processing of the target service is successful, S418 may be continuously executed, and when the processing of the target service is not successful, S416 may be continuously executed.
In S416, when it is detected that the target service is not successfully processed, the user behavior data and the target information corresponding to the service page are deleted from the memory cache based on the preset clearing period.
In S418, under the condition that the target service is successfully processed, the process data corresponding to the service page is read from the memory cache according to the page identifier of the service page.
In S420, block chain credential data is generated based on the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, and the block chain credential data is uploaded to a predetermined block chain, so that when the data backtracking device receives a data backtracking request including the user identifier of the user and the service identifier of the target service, the block chain credential data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is performed based on the block chain credential data.
The embodiment of the specification provides a data storage method, which includes acquiring process data generated in a process of processing a service page of a target service, storing the process data and a page identifier of a corresponding service page into a memory cache, reading the process data corresponding to the service page from the memory cache according to the page identifier of the service page when successful processing of the target service is detected, generating block chain certificate data based on the service identifier of the target service, a user identifier of a user and the process data corresponding to the service page, uploading the block chain certificate data to a preset block chain, so that when a data backtracking device receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain certificate data is acquired from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the situation that the target service is successfully processed is detected, the generated block chain evidence storing data can be uploaded to the preset block chain, so that waste of data storage space can be avoided, authenticity of the block chain evidence storing data is guaranteed, and data processing efficiency during backtracking processing of the target service is improved.
EXAMPLE five
As shown in fig. 5, the present specification provides an information data storage method, and a main execution body of the method may be a block chain node device, and the block chain node device may be any one or more node devices in a predetermined block chain. The method may specifically comprise the steps of:
in S502, block chain storage authentication data corresponding to the successfully processed target service sent by the terminal device is received.
The block chain evidence storing data can be data which can backtrack the process of processing the service page of the target service by the user.
In S504, an intelligent contract is generated based on the target traffic, and the intelligent contract is deployed in the blockchain.
The intelligent contract can be used for backtracking the process of processing the target service by the user.
In implementation, an incomplete intelligent contract related to a target service may be pre-deployed on a blockchain, for example, the incomplete intelligent contract may only include a structural framework of the intelligent contract, and may not include information related to specific service content of the target service, for example, only include names of items such as a processing state of the target service, a user identifier of a user, a page identifier of a service page, process data generated by a process of processing the service page, and the like, but not include contents of the items, and the intelligent contract may be deployed in the blockchain. After the block chain link point obtains the block chain credit data sent by the terminal device, the incomplete intelligent contract can be perfected based on the block chain credit data, namely the block chain credit data is written into the intelligent contract which is pre-deployed in the block chain, so that a complete intelligent contract is obtained, and the complete intelligent contract is generated based on the target service and is deployed in the block chain.
In S506, a data backtracking request is received.
The data backtracking request may include a user identifier of the user and a service identifier of the target service.
In S508, an intelligent contract is obtained based on the service identifier, and block chain warranty data is obtained from the block chain based on the intelligent contract and the user identifier of the user.
In implementation, the traceable time of the target service can be determined according to the intelligent contract and the user identifier, whether the completed time of the target service reaches the traceable time or not is determined according to the traceable time, and if the traceable time is reached, block chain evidence data corresponding to the user identifier of the user and the target service identifier can be obtained from the block chain.
The method for acquiring block link evidence data based on the intelligent contract and the user identifier of the user is an optional and realizable acquisition method, and in an actual application scenario, a plurality of different acquisition methods may be available, which may be different according to different actual application scenarios, and this is not specifically limited in this embodiment of the present specification.
In S510, a backtracking process is performed on the user processing target service based on the acquired blockchain credential data.
In implementation, if the block chain evidence storing data is the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, the backtracking processing can be performed on the user processing target service based on the block chain evidence storing data.
Or, if the blockchain certificate storage data is data obtained by encrypting the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page through a preset encryption key (for example, an encryption key generated by the blockchain according to the user identifier of the user), the blockchain certificate storage data may be decrypted to obtain the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, and the user processing target service is traced back based on the decrypted data.
In addition, the block chain link point can delete the stored block chain evidence storage data corresponding to the target service after backtracking processing is carried out on the target service.
The embodiment of the specification provides a data storage method, which includes the steps of receiving block link evidence data corresponding to a target service which is successfully processed and sent by a terminal device, generating an intelligent contract based on the target service, deploying the intelligent contract in a block chain, receiving a data backtracking request, obtaining the intelligent contract based on a service identifier, obtaining the block link evidence data from the block chain based on the intelligent contract and the user identifier of a user, and backtracking the target service processed by the user based on the obtained block link evidence data, wherein the data backtracking request comprises the user identifier of the user and the service identifier of the target service. Therefore, as the block chain evidence storing data is the data corresponding to the successfully processed target service, the useless data can be prevented from being stored on the block chain nodes, the data storage efficiency of the block chain nodes can be improved, meanwhile, the authenticity of the stored block chain evidence storing data can be ensured through block chain linking, and the data processing efficiency when the target service is backtracked is improved.
EXAMPLE six
As shown in fig. 6, the present specification provides an information data storage method, and a main execution body of the method may be a block chain node device, and the block chain node device may be any one or more node devices in a predetermined block chain. The method may specifically comprise the steps of:
in S602, the blockchain credential data corresponding to the successfully processed target service sent by the terminal device is received.
The block chain evidence storing data can be determined based on a service identifier of the target service, a user identifier of the user and process data generated in the process of processing the service page of the target service by the user. The process data may include user behavior data generated in the process of processing the service page of the target service, and target information corresponding to the service page. The target information may include initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page during processing of the target service.
The target information may include initial page information of the service page, and page content change data generated by change information of page elements in the service page and user behavior of the user on the service page in the process of processing the target service.
In S604, an intelligent contract is generated based on the target traffic, and the intelligent contract is deployed in the blockchain.
In S606, a data backtracking request is received.
For the specific processing procedures of S602 to S606, reference may be made to the relevant contents of S502 to S506 in the fifth embodiment, which are not described herein again.
In addition, the intelligent contract generated based on the target service may include a first sub-intelligent contract and a second sub-intelligent contract, where the first sub-intelligent contract may be used to determine whether the service state of the target service meets the preset backtracking verification condition, and the second sub-intelligent contract may be used to obtain the block chain verification data, that is, after S606, S608 may be continuously performed.
In S608, it is determined whether the service state of the target service meets the preset backtracking check condition based on the first sub-intelligent contract and the user identifier of the user.
In an implementation, the preset backtracking inspection condition may be various, for example, the preset backtracking inspection condition may be whether the completed time of the target service reaches the backtracking time, or not.
In S610, under the condition that the service state of the target service meets the preset backtracking check condition, obtaining block chain credit data from the block chain based on the second sub-intelligent contract and the user identifier of the user.
After the block chain evidence storing data is acquired, the target service may be backtracked based on the block chain evidence storing data, and specifically, the target service may be backtracked through S612 or S614 to S616.
In S612, based on the acquired block chain storage certification data, backtracking processing is performed on the user processing target service through the third sub-intelligent contract.
In implementation, the third sub intelligent contract may be the same as or different from the second sub intelligent contract, and the target service may be backtracked according to the third sub intelligent contract.
In S614, based on the obtained block chain evidence data, user behavior data generated in the process of processing the service page of the target service by the user and target information corresponding to the service page are determined.
In an implementation, for example, if the blockchain credential data includes verifiable information generated based on the service identifier of the target service, the user identifier of the user, and the user behavior data and the target information corresponding to the service page by a preset verification algorithm (e.g., by a preset hash algorithm), and the service identifier of the target service, the user identifier of the user, the user behavior data and the target information corresponding to the service page, the target verification information may be generated based on the service identifier of the target service, the user identifier of the user, and the user behavior data and the target information corresponding to the service page by a preset verification algorithm (e.g., by a preset hash algorithm), and the verification processing is performed by the target verification information and the verifiable information, in case of successful verification, based on the service identifier of the target service, the user identifier of the user, and the user behavior data and the target information corresponding to the service page, and backtracking the user processing target service.
In S616, the user processing target service is backtracked based on the determined user behavior data and target information corresponding to the service page.
The embodiment of the specification provides a data storage method, which includes the steps of receiving block chain evidence data corresponding to a target service which is successfully processed and sent by a terminal device, generating an intelligent contract based on the target service, deploying the intelligent contract in a block chain, receiving a data backtracking request, obtaining the intelligent contract based on a service identifier, obtaining block chain evidence data from the block chain based on the intelligent contract and the user identifier of a user, and performing backtracking processing on the target service processed by the user based on the obtained block chain evidence data, wherein the data backtracking request comprises the user identifier of the user and the service identifier of the target service. Therefore, as the block chain evidence storing data is the data corresponding to the successfully processed target service, the useless data can be prevented from being stored on the block chain nodes, the data storage efficiency of the block chain nodes can be improved, meanwhile, the authenticity of the stored block chain evidence storing data can be ensured through block chain linking, and the data processing efficiency when the target service is backtracked is improved.
EXAMPLE seven
The embodiment of the present specification further provides a data storage device, as shown in fig. 7.
The data storage device includes: a first obtaining module 701, a first storing module 702, a data reading module 703 and a data storing module 704, wherein:
a first obtaining module 701, configured to obtain process data generated in a process of processing a service page of a target service;
a first storage module 702, configured to store the process data and the page identifier corresponding to the service page in a memory cache;
a data reading module 703, configured to, when it is detected that the target service is successfully processed, read, according to a page identifier of the service page, process data corresponding to the service page from the memory cache;
and a data storage module 704, configured to store the read process data to a persistent cache.
In an embodiment of this specification, the process data includes user behavior data generated in a process of processing a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
In an embodiment of this specification, the apparatus further includes:
and the data deleting module is used for deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
In this embodiment of the present specification, the first obtaining module 701 is configured to:
generating a page identifier of the service page under the condition that the service page aiming at the target service is detected to be processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
In an embodiment of this specification, the apparatus further includes:
and the sending module is used for reading the user behavior data and the target information corresponding to the service page from the persistent cache according to the page identifier of the service page, and sending the read user behavior data and target information, the service identifier of the target service and the user identifier of the user to the server, so that the server backtracks the target service based on the user behavior data and the target information corresponding to the service page.
In an embodiment of this specification, the apparatus further includes:
and the deleting module is used for deleting the user behavior data and the target information corresponding to each service page contained in the target service from the persistent cache after sending the user behavior data and the target information corresponding to each service page contained in the target service to the server.
In this embodiment of the present specification, the first storage module 702 is configured to:
storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the service page based on second user behavior data generated in the process of processing the service page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page into the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
The embodiments of the present specification provide a data storage device, which stores process data and a page identifier of a corresponding service page in a memory cache by acquiring process data generated in a process of processing a service page for a target service, and reads the process data corresponding to the service page from the memory cache according to the page identifier of the service page when it is detected that the target service is successfully processed, and stores the read process data in a persistent cache. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored to the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
Example eight
The embodiment of the specification further provides a data storage device, as shown in fig. 8.
The data storage device includes: an obtaining module 801, a storage module 802, a reading module 803, and an uploading module 804, wherein:
an obtaining module 801, configured to obtain process data generated in a process of processing a service page of a target service;
a storage module 802, configured to store the process data and the page identifier corresponding to the service page in a memory cache;
a reading module 803, configured to, when it is detected that the target service is successfully processed, read, according to the page identifier of the service page, process data corresponding to the service page from the memory cache;
an uploading module 804, configured to generate block chain evidence storing data based on the service identifier of the target service, the user identifier of the user, and the process data corresponding to the service page, and upload the block chain evidence storing data to a predetermined block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
In an embodiment of this specification, the apparatus further includes:
and the data deleting module is used for deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
In this embodiment of the present specification, the obtaining module 801 is configured to:
generating a page identifier of the service page under the condition that the service page aiming at the target service is detected to be processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
In this embodiment of the present specification, the obtaining module 801 is configured to:
storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the service page based on second user behavior data generated in the process of processing the service page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page to the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
The embodiment of the present specification provides a data storage device, which obtains process data generated in a process of processing a service page of a target service, stores the process data and a page identifier corresponding to the service page into a memory cache, reads the process data corresponding to the service page from the memory cache according to the page identifier of the service page when successful processing of the target service is detected, generates block chain certificate data based on the service identifier of the target service, a user identifier of a user, and the process data corresponding to the service page, and uploads the block chain certificate data to a predetermined block chain, so that when a data backtracking request including the user identifier of the user and the service identifier of the target service is received by a data backtracking device, the block chain certificate data is obtained from the block chain by the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storage data. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the situation that the target service is successfully processed is detected, the generated block chain evidence storing data can be uploaded to the preset block chain, so that waste of data storage space can be avoided, authenticity of the block chain evidence storing data is guaranteed, and data processing efficiency during backtracking processing of the target service is improved.
Example nine
The embodiment of the present specification further provides a data storage device, as shown in fig. 9.
The data storage device includes: a data receiving module 901, a contract generating module 902, a request receiving module 903, a data obtaining module 904 and a backtracking module 905, wherein:
a data receiving module 901, configured to receive block link credit data corresponding to a successfully processed target service sent by a terminal device;
a contract generating module 902, configured to generate an intelligent contract based on the target service, and deploy the intelligent contract in a blockchain;
a request receiving module 903, configured to receive a data backtracking request, where the data backtracking request includes a user identifier of a user and a service identifier of the target service;
a data obtaining module 904, configured to obtain the intelligent contract based on the service identifier, and obtain the block chain warranty data from the block chain based on the intelligent contract and the user identifier of the user;
a backtracking module 905, configured to perform backtracking processing on the target service processed by the user based on the acquired block link credential data.
In an embodiment of this specification, the block link credential data is determined based on a service identifier of the target service, a user identifier of the user, and process data generated in a process in which the user processes a service page of the target service; the process data comprises user behavior data generated in the process of processing the service page of the target service and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
In this embodiment, the intelligent contracts include a first sub intelligent contract and a second sub intelligent contract, and the data obtaining module 904 is configured to:
determining whether the service state of the target service meets a preset backtracking inspection condition or not based on the first sub-intelligent contract and the user identification of the user;
and acquiring the block chain evidence data from the block chain based on the second sub intelligent contract and the user identifier of the user under the condition that the service state of the target service meets the preset backtracking inspection condition.
In an embodiment of this specification, the intelligent contract further includes a third sub-intelligent contract, and the backtracking module 905 is configured to:
and based on the acquired block link evidence storing data, backtracking the target service processed by the user through the third sub intelligent contract.
In this embodiment of the present specification, the backtracking module 905 is configured to:
determining user behavior data generated in the process that the user processes the service page and target information corresponding to the service page based on the acquired block link evidence storage data;
and based on the determined user behavior data and the target information corresponding to the service page, performing backtracking processing on the target service processed by the user.
The embodiment of the specification provides a data storage device, which generates an intelligent contract based on a target service by receiving block chain storage evidence data corresponding to a successfully processed target service sent by a terminal device, deploys the intelligent contract in a block chain, receives a data backtracking request, the data backtracking request comprises a user identifier of a user and a service identifier of the target service, acquires the intelligent contract based on the service identifier, acquires block chain storage evidence data from the block chain based on the intelligent contract and the user identifier of the user, and backtracks the user processing target service based on the acquired block chain storage evidence data. Therefore, as the block chain evidence storing data is the data corresponding to the successfully processed target service, the useless data can be prevented from being stored on the block chain nodes, the data storage efficiency of the block chain nodes can be improved, meanwhile, the authenticity of the stored block chain evidence storing data can be ensured through block chain linking, and the data processing efficiency when the target service is backtracked is improved.
Example ten
Based on the same idea, the embodiments of the present specification further provide a data storage device, as shown in fig. 10.
The data storage device may be the terminal device provided in the above embodiment.
The data storage device may vary greatly in configuration or performance, and may include one or more processors 1001 and memory 1002, and the memory 1002 may store one or more stored applications or data. Memory 1002 may be, among other things, transient storage or persistent storage. The application programs stored in memory 1002 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a data storage device. Still further, the processor 1001 may be configured to communicate with the memory 1002 to execute a series of computer-executable instructions in the memory 1002 on a data storage device. The data storage device may also include one or more power supplies 1003, one or more wired or wireless network interfaces 1004, one or more input-output interfaces 1005, one or more keyboards 1006.
In particular, in this embodiment, the data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data storage device, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
and storing the read process data to a persistent cache.
Optionally, the process data includes user behavior data generated in a process of processing a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
Optionally, after the storing the process data and the page identifier corresponding to the service page in a memory cache, the method further includes:
and deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
Optionally, the acquiring process data generated in the process of processing the service page of the target service includes:
generating a page identifier of the service page under the condition that the service page aiming at the target service is detected to be processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
Optionally, after storing the read process data to the persistent cache, the method further includes:
and reading user behavior data and target information corresponding to the service page from the persistent cache according to the page identifier of the service page, and sending the read user behavior data and target information, the service identifier of the target service and the user identifier of the user to a server, so that the server backtracks the target service based on the user behavior data and the target information corresponding to the service page.
Optionally, the method further comprises:
and after the user behavior data and the target information corresponding to each service page contained in the target service are sent to a server, deleting the user behavior data and the target information corresponding to each service page contained in the target service from the persistent cache.
Optionally, the storing the process data and the page identifier corresponding to the service page into a memory cache includes
Storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the service page based on second user behavior data generated in the process of processing the service page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page into the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
The embodiments of the present specification provide a data storage device, which stores process data and a page identifier corresponding to a service page into a memory cache by acquiring process data generated in a process of processing the service page of a target service, and reads the process data corresponding to the service page from the memory cache according to the page identifier of the service page when it is detected that the target service is successfully processed, and stores the read process data into a persistent cache. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored to the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
EXAMPLE eleven
Based on the same idea, embodiments of the present specification further provide a data storage device, as shown in fig. 11.
The data storage device may be a server or a blockchain node provided in the above embodiments.
The data storage devices, which may vary considerably in configuration or performance, may include one or more processors 1101 and memory 1102, and the memory 1102 may have one or more stored applications or data stored therein. Wherein memory 1102 may be transient or persistent. The application programs stored in memory 1102 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a data storage device. Still further, the processor 1101 may be configured to communicate with the memory 1102 to execute a series of computer-executable instructions in the memory 1102 on a data storage device. The data storage device may also include one or more power supplies 1103, one or more wired or wireless network interfaces 1104, one or more input-output interfaces 1105, one or more keyboards 1106.
In particular, in this embodiment, the data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data storage device, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identifier corresponding to the service page into a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
Optionally, the process data includes user behavior data generated in a process of processing a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
Optionally, after the storing the user behavior data, the target information, and the page identifier of the service page in a memory cache, the method further includes:
and deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
Optionally, the acquiring process data generated in the process of processing the service page of the target service includes:
generating a page identifier of the business page under the condition of detecting that the business page aiming at the target business is processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
Optionally, the storing the process data and the page identifier corresponding to the service page into a memory cache includes
Storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the service page based on second user behavior data generated in the process of processing the service page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page to the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
In particular, in this embodiment, the data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data storage device, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
receiving block chain evidence storing data which are sent by terminal equipment and correspond to the successfully processed target service;
generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain;
receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service;
acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user;
and backtracking the target service processed by the user based on the acquired block link evidence storage data.
Optionally, the block link evidence storing data is determined based on a service identifier of the target service, a user identifier of the user, and process data generated in a process of processing a service page of the target service by the user; the process data comprises user behavior data generated in the process of processing the service page of the target service and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
Optionally, the intelligent contract includes a first sub intelligent contract and a second sub intelligent contract, and the obtaining the block chain credit data from the block chain based on the intelligent contract and the user identifier of the user includes:
determining whether the service state of the target service meets a preset backtracking inspection condition or not based on the first sub-intelligent contract and the user identification of the user;
and acquiring the block chain evidence data from the block chain based on the second sub intelligent contract and the user identifier of the user under the condition that the service state of the target service meets the preset backtracking inspection condition.
Optionally, the intelligent contract further includes a third sub-intelligent contract, and the backtracking processing of the target service processed by the user based on the acquired block chaining certification data includes:
and based on the acquired block link evidence data, performing backtracking processing on the target service processed by the user through the third sub-intelligent contract.
Optionally, the backtracking processing the target service processed by the user based on the acquired block link credential data includes:
determining user behavior data generated in the process that the user processes the service page and target information corresponding to the service page based on the acquired block link evidence storage data;
and based on the determined user behavior data and the target information corresponding to the service page, performing backtracking processing on the target service processed by the user.
The embodiment of the present specification provides a data storage device, which stores process data and a page identifier corresponding to a service page into a memory cache by obtaining process data generated in a process of processing the service page for a target service, and reads the process data corresponding to the service page from the memory cache according to the page identifier of the service page and stores the read process data into a persistent cache when it is detected that the target service is successfully processed. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored in the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
Example twelve
The embodiments of the present specification further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the data storage method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The storage medium is used for storing computer executable instructions, and the executable instructions realize the following processes when executed:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
and storing the read process data to a persistent cache.
Optionally, the process data includes user behavior data generated in a process of processing a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
Optionally, after the storing the process data and the page identifier corresponding to the service page in a memory cache, the method further includes:
and deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
Optionally, the acquiring process data generated in the process of processing the service page of the target service includes:
generating a page identifier of the service page under the condition that the service page aiming at the target service is detected to be processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
Optionally, after storing the read process data to the persistent cache, the method further includes:
and reading user behavior data and target information corresponding to the service page from the persistent cache according to the page identifier of the service page, and sending the read user behavior data and target information, the service identifier of the target service and the user identifier of the user to a server, so that the server backtracks the target service based on the user behavior data and the target information corresponding to the service page.
Optionally, the method further comprises:
and after the user behavior data and the target information corresponding to each service page contained in the target service are sent to a server, deleting the user behavior data and the target information corresponding to each service page contained in the target service from the persistent cache.
Optionally, the storing the process data and the page identifier corresponding to the service page into a memory cache includes
Storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page into the memory cache;
determining user behavior data corresponding to the service page based on second user behavior data generated in the process of processing the service page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page into the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
Additionally, the storage medium is used to store computer executable instructions that when executed may also implement the following process:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
Optionally, the process data includes user behavior data generated in a process of processing a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the business page, change information of page elements in the business page in the process of processing the target business, and page content change data generated by responding to user behaviors by the page content of the business page.
Optionally, after the storing the user behavior data, the target information, and the page identifier of the service page in a memory cache, the method further includes:
and deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
Optionally, the acquiring process data generated in the process of processing the service page of the target service includes:
generating a page identifier of the business page under the condition of detecting that the business page aiming at the target business is processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
Optionally, the storing the process data and the page identifier corresponding to the service page into a memory cache includes
Storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the business page based on second user behavior data generated in the process of processing the business page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page to the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
Additionally, the storage medium is used to store computer executable instructions that when executed may also implement the following process:
receiving block chain evidence storing data which are sent by terminal equipment and correspond to the successfully processed target service;
generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain;
receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service;
acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user;
and backtracking the target service processed by the user based on the acquired block link evidence storage data.
Optionally, the block link evidence storing data is determined based on a service identifier of the target service, a user identifier of the user, and process data generated in a process of processing a service page of the target service by the user; the process data comprises user behavior data generated in the process of processing the service page of the target service and target information corresponding to the service page; the target information comprises initial page information of the business page, change information of page elements in the business page in the process of processing the target business, and page content change data generated by responding to user behaviors by the page content of the business page.
Optionally, the intelligent contract includes a first sub intelligent contract and a second sub intelligent contract, and the obtaining the block chain credit data from the block chain based on the intelligent contract and the user identifier of the user includes:
determining whether the service state of the target service meets a preset backtracking inspection condition or not based on the first sub-intelligent contract and the user identification of the user;
and under the condition that the service state of the target service accords with the preset backtracking inspection condition, acquiring the block chain evidence storage data from the block chain based on the second sub-intelligent contract and the user identification of the user.
Optionally, the intelligent contract further includes a third sub-intelligent contract, and the backtracking processing of the target service processed by the user based on the acquired block chaining certification data includes:
and based on the acquired block link evidence data, performing backtracking processing on the target service processed by the user through the third sub-intelligent contract.
Optionally, the backtracking processing the target service processed by the user based on the acquired block link credential data includes:
determining user behavior data generated in the process that the user processes the service page and target information corresponding to the service page based on the acquired block link evidence storage data;
and based on the determined user behavior data and the target information corresponding to the service page, performing backtracking processing on the target service processed by the user.
The embodiments of the present specification provide a computer-readable storage medium, which stores process data and a page identifier corresponding to a service page into a memory cache by acquiring process data generated in a process of processing the service page of a target service, and reads the process data corresponding to the service page from the memory cache according to the page identifier of the service page and stores the read process data into a persistent cache when it is detected that the target service is successfully processed. Therefore, the memory cache has the characteristic of high access speed, so that the process data and the page identification of the corresponding service page are stored in the memory cache, and the data processing efficiency can be improved. When the target service is successfully processed, the process data and the page identifier of the corresponding service page are read from the memory cache and stored in the persistent cache, so that the waste of data storage space can be avoided, and the data processing efficiency during backtracking processing of the target service is improved.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is written by a specific programming Language, which is called Hardware Description Language (HDL), and the HDL is not only one kind but many kinds, such as abel (advanced boot expression Language), ahdl (alternate Language Description Language), communication, CUPL (computer universal programming Language), HDCal (Java Hardware Description Language), langa, Lola, mylar, HDL, PALASM, rhyddl (rhyd Description Language), vhjhde, and vhyg-Language, which are currently used commonly. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 425D, AtmelAT91SAM, Microchip PIC13F24K20, and Silicone Labs C3051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present description are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. 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 storage device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data storage device, 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 storage device 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 storage device 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (24)

1. A data storage method is applied to terminal equipment, and the method comprises the following steps:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
and storing the read process data to a persistent cache.
2. The method according to claim 1, wherein the process data includes user behavior data generated in the process of processing the service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
3. The method of claim 2, after storing the process data and the page identifier corresponding to the service page to a memory cache, the method further comprising:
and deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
4. The method of claim 2, wherein the obtaining process data generated in the process of processing the service page for the target service comprises:
generating a page identifier of the service page under the condition that the service page aiming at the target service is detected to be processed;
generating a user behavior monitoring task aiming at the service page and a recording task aiming at the target information based on the page identification;
and acquiring the user behavior data generated in the process of processing the service page based on the user behavior monitoring task, and acquiring target information corresponding to the service page based on the recording task.
5. The method of claim 2, further comprising, after said storing the read process data to a persistent cache:
and reading user behavior data and target information corresponding to the service page from the persistent cache according to the page identifier of the service page, and sending the read user behavior data and target information, the service identifier of the target service and the user identifier of the user to a server, so that the server backtracks the target service based on the user behavior data and the target information corresponding to the service page.
6. The method of claim 5, further comprising:
and after the user behavior data and the target information corresponding to each service page contained in the target service are sent to a server, deleting the user behavior data and the target information corresponding to each service page contained in the target service from the persistent cache.
7. The method of claim 2, wherein storing the process data and the page identifier corresponding to the service page to a memory cache comprises
Storing first user behavior data generated in the process of processing the service page of the target service, first target information corresponding to the service page and a page identifier corresponding to the service page to the memory cache;
determining user behavior data corresponding to the business page based on second user behavior data generated in the process of processing the business page and the first user behavior data;
determining target information corresponding to the business page based on second target information generated in the process of processing the business page and the first target information;
storing the user behavior data, the target information and the page identifier corresponding to the service page to the memory cache, and deleting the first user behavior data and the first target information corresponding to the page identifier of the service page stored in the memory cache.
8. A data storage method is applied to terminal equipment, and the method comprises the following steps:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
9. A data storage method is applied to a blockchain node, and the method comprises the following steps:
receiving block chain evidence storing data corresponding to a successfully processed target service sent by a terminal device, wherein the block chain evidence storing data is generated by the terminal device based on a service identifier of the target service, a user identifier of a user and process data corresponding to a service page, and the process data corresponding to the service page is process data which is read from a memory cache and is processed aiming at the service page of the target service according to the page identifier of the service page under the condition that the terminal device detects that the target service is successfully processed;
generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain;
receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service;
acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user;
and backtracking the target service processed by the user based on the acquired block link evidence storage data.
10. The method of claim 9, wherein the process data includes user behavior data generated during processing of a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the business page, change information of page elements in the business page in the process of processing the target business, and page content change data generated by responding to user behaviors by the page content of the business page.
11. The method of claim 10, the intelligent contract comprising a first sub-intelligent contract and a second sub-intelligent contract, the obtaining the blockchain credit data from the blockchain based on the intelligent contract and a user identification of the user comprising:
determining whether the service state of the target service meets a preset backtracking inspection condition or not based on the first sub-intelligent contract and the user identification of the user;
and acquiring the block chain evidence data from the block chain based on the second sub intelligent contract and the user identifier of the user under the condition that the service state of the target service meets the preset backtracking inspection condition.
12. The method of claim 11, the intelligent contract further comprising a third sub-intelligent contract, the backtracking processing of the user processing the target business based on the obtained block chaining certification data comprising:
and based on the acquired block link evidence storing data, backtracking the target service processed by the user through the third sub intelligent contract.
13. The method according to claim 10, wherein the backtracking processing the target service processed by the user based on the acquired block chaining certification data includes:
determining user behavior data generated in the process that the user processes the service page and target information corresponding to the service page based on the acquired block link evidence storage data;
and based on the determined user behavior data and the target information corresponding to the service page, performing backtracking processing on the target service processed by the user.
14. A data storage device, the device comprising:
the first acquisition module is used for acquiring process data generated in the process of processing the service page of the target service;
the first storage module is used for storing the process data and the page identifier corresponding to the service page into a memory cache;
the data reading module is used for reading process data corresponding to the service page from the memory cache according to the page identifier of the service page under the condition that the target service is detected to be successfully processed;
and the data storage module is used for storing the read process data to the persistent cache.
15. The device of claim 14, wherein the process data includes user behavior data generated during processing of a service page of the target service, and target information corresponding to the service page; the target information comprises initial page information of the service page, and page content change data generated by page content of the service page in response to user behavior and change information of page elements in the service page in the process of processing the target service.
16. The apparatus of claim 15, further comprising:
and the data deleting module is used for deleting the user behavior data and the target information corresponding to the service page from the memory cache based on a preset clearing period under the condition that the target service is detected to be not processed successfully.
17. A data storage device, the device comprising:
the acquisition module is used for acquiring process data generated in the process of processing the service page of the target service;
the storage module is used for storing the process data and the page identifier corresponding to the service page into a memory cache;
the reading module is used for reading process data corresponding to the service page from the memory cache according to the page identifier of the service page under the condition that the target service is successfully processed;
the uploading module is used for generating block chain evidence storing data based on the service identifier of the target service, the user identifier of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
18. A data storage device, the device comprising:
the data receiving module is used for receiving block chain evidence storing data which are sent by terminal equipment and correspond to a successfully processed target service, wherein the block chain evidence storing data are generated by the terminal equipment based on a service identifier of the target service, a user identifier of a user and process data which correspond to a service page, and the process data which correspond to the service page are process data which are read from a memory cache and are processed aiming at the service page of the target service according to the page identifier of the service page under the condition that the terminal equipment detects that the target service is successfully processed;
the contract generation module is used for generating intelligent contracts based on the target services and deploying the intelligent contracts in a block chain;
a request receiving module, configured to receive a data backtracking request, where the data backtracking request includes a user identifier of a user and a service identifier of the target service;
the data acquisition module is used for acquiring the intelligent contract based on the service identifier and acquiring the block chain evidence storage data from the block chain based on the intelligent contract and the user identifier of the user;
and the backtracking module is used for backtracking the target service processed by the user based on the acquired block link evidence storage data.
19. A data storage device, the data storage device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
and storing the read process data to a persistent cache.
20. A data storage device, the data storage device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
generating block chain evidence storing data based on the service identifier of the target service, the user identifier of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identification of the user and the service identification of the target service, the block chain evidence storing data is obtained from the block chain through the user identification of the user and the service identification of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
21. A data storage device, the data storage device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving block chain evidence storing data corresponding to a successfully processed target service sent by a terminal device, wherein the block chain evidence storing data is generated by the terminal device based on a service identifier of the target service, a user identifier of a user and process data corresponding to a service page, and the process data corresponding to the service page is read from a memory cache according to the page identifier of the service page and is processed aiming at the service page of the target service when the terminal device detects that the target service is successfully processed;
generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain;
receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service;
acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user;
and backtracking the target service processed by the user based on the acquired block link evidence storage data.
22. A storage medium for storing computer-executable instructions that when executed perform the following:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identifier corresponding to the service page into a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
and storing the read process data to a persistent cache.
23. A storage medium for storing computer-executable instructions, which when executed implement the following:
acquiring process data generated in the process of processing a service page of a target service;
storing the process data and the page identification corresponding to the service page to a memory cache;
under the condition that the target service is successfully processed, reading process data corresponding to the service page from the memory cache according to the page identifier of the service page;
generating block chain evidence storing data based on the service identification of the target service, the user identification of the user and the process data corresponding to the service page, and uploading the block chain evidence storing data to a preset block chain; when the data backtracking equipment receives a data backtracking request comprising the user identifier of the user and the service identifier of the target service, the block chain evidence storing data is obtained from the block chain through the user identifier of the user and the service identifier of the target service, and backtracking processing is carried out based on the block chain evidence storing data.
24. A storage medium for storing computer-executable instructions, which when executed implement the following:
receiving block chain evidence storing data corresponding to a successfully processed target service sent by a terminal device, wherein the block chain evidence storing data is generated by the terminal device based on a service identifier of the target service, a user identifier of a user and process data corresponding to a service page, and the process data corresponding to the service page is process data which is read from a memory cache and is processed aiming at the service page of the target service according to the page identifier of the service page under the condition that the terminal device detects that the target service is successfully processed;
generating an intelligent contract based on the target business, and deploying the intelligent contract in a block chain;
receiving a data backtracking request, wherein the data backtracking request comprises a user identifier of a user and a service identifier of the target service;
acquiring the intelligent contract based on the service identifier, and acquiring block chain evidence data from the block chain based on the intelligent contract and the user identifier of the user;
and backtracking the target service processed by the user based on the acquired block link evidence storage data.
CN202010870927.6A 2020-08-26 2020-08-26 Data storage method, device and equipment Active CN112019617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010870927.6A CN112019617B (en) 2020-08-26 2020-08-26 Data storage method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010870927.6A CN112019617B (en) 2020-08-26 2020-08-26 Data storage method, device and equipment

Publications (2)

Publication Number Publication Date
CN112019617A CN112019617A (en) 2020-12-01
CN112019617B true CN112019617B (en) 2022-09-27

Family

ID=73502244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010870927.6A Active CN112019617B (en) 2020-08-26 2020-08-26 Data storage method, device and equipment

Country Status (1)

Country Link
CN (1) CN112019617B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870955A (en) * 2014-03-24 2014-06-18 小米科技有限责任公司 Processing method and device for data in webpage
CN108876610A (en) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 Intelligent contract implementation method, user equipment, storage medium and device
CN110633299A (en) * 2019-08-19 2019-12-31 中国平安财产保险股份有限公司 Business data caching method and device, computer equipment and storage medium
JP2020038568A (en) * 2018-09-05 2020-03-12 株式会社GA technologies Information processing method, information processing device, and program
CN111339565A (en) * 2020-05-15 2020-06-26 支付宝(杭州)信息技术有限公司 Business service providing method, device, equipment and system based on block chain

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760283B (en) * 2014-12-18 2018-11-09 阿里巴巴集团控股有限公司 A kind of log-output method and device
CN106357791A (en) * 2016-09-30 2017-01-25 华为技术有限公司 Method, device and system for processing services
WO2020150944A1 (en) * 2019-01-24 2020-07-30 福建联迪商用设备有限公司 Service processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870955A (en) * 2014-03-24 2014-06-18 小米科技有限责任公司 Processing method and device for data in webpage
CN108876610A (en) * 2018-05-31 2018-11-23 深圳市零度智控科技有限公司 Intelligent contract implementation method, user equipment, storage medium and device
JP2020038568A (en) * 2018-09-05 2020-03-12 株式会社GA technologies Information processing method, information processing device, and program
CN110633299A (en) * 2019-08-19 2019-12-31 中国平安财产保险股份有限公司 Business data caching method and device, computer equipment and storage medium
CN111339565A (en) * 2020-05-15 2020-06-26 支付宝(杭州)信息技术有限公司 Business service providing method, device, equipment and system based on block chain

Also Published As

Publication number Publication date
CN112019617A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112671769B (en) Electronic contract signing method, device and equipment
CN111859470B (en) Business data chaining method and device
CN113312667B (en) Risk prevention and control method, device and equipment
CN113076527B (en) Block chain-based digital asset processing method and device
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN111461623B (en) Block chain-based warehouse bill creating method, device and equipment
CN111339565B (en) Business service providing method, device, equipment and system based on block chain
CN110781192B (en) Verification method, device and equipment of block chain data
CN108536569B (en) Business behavior tracking method, device and equipment
CN110602163B (en) File uploading method and device
CN114638005A (en) Data processing method, device and system based on block chain and storage medium
CN112258295B (en) Recording processing method, device and equipment
CN110990492B (en) Information processing method, device and equipment
CN112019617B (en) Data storage method, device and equipment
CN111526166A (en) Information verification method, device and equipment
CN113672784B (en) Vehicle information processing method, device and system based on block chain
CN113761496B (en) Identity verification method and device based on blockchain and electronic equipment
CN112039971B (en) Data recording method and device, and data storage method and device
CN114896635A (en) Data processing method and device, electronic equipment and storage medium
CN112199399A (en) Data processing method and device
CN114528121A (en) Power grid standing book data distribution method and device
CN110955653A (en) Data page processing method, device, equipment and computer system
CN107395486B (en) Data communication method, device and system and message middleware
CN110995447A (en) Data storage method, device, equipment and medium
CN117348999B (en) Service execution system and service execution method

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
TA01 Transfer of patent application right

Effective date of registration: 20211206

Address after: Room 610, floor 6, No. 618, Wai Road, Huangpu District, Shanghai 200010

Applicant after: Ant Shengxin (Shanghai) Information Technology Co.,Ltd.

Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: Alipay (Hangzhou) Information Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant