Unlock instant, AI-driven research and patent intelligence for your innovation.

Redis transaction processing method and device, electronic equipment and storage medium

A transaction processing and processing device technology, applied in the field of Redis transaction processing, can solve cumbersome problems and achieve the effect of improving efficiency and convenience

Pending Publication Date: 2021-10-08
BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on the deficiencies of the above-mentioned prior art, the present application provides a Redis transaction processing method and device, electronic equipment, and storage media to solve the problem that the prior art is too cumbersome

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Redis transaction processing method and device, electronic equipment and storage medium
  • Redis transaction processing method and device, electronic equipment and storage medium
  • Redis transaction processing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0058] As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.

[0059] It should be noted that concepts such as "...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Redis transaction processing method and device, electronic equipment and a storage medium, and the method comprises the steps of analyzing a target command to obtain target information before executing the target command of a current transaction; according to the indication of the target information, determining original data involved in execution of the target command; generating a rollback log at least comprising the original data; executing the target command, and judging whether the target command is successfully executed or not; and if it is judged that the target command fails to be executed, rolling back the original data based on the rolling-back log. Therefore, the original data is obtained in advance, the rollback log is generated, rollback is directly performed based on the original data in the rollback log subsequently, and the corresponding data is recovered to the state before the target command is executed, so that the data needing to be rolled back does not need to be determined manually, and rollback is performed through programming.

Description

technical field [0001] The present application relates to the field of Redis transaction processing, and in particular to a Redis transaction processing method and device, electronic equipment, and a storage medium. Background technique [0002] Redis (Remote Dictionary Server) is a high-performance key-value pair (key-value) database, so it is currently widely used. [0003] When native Redis processes a transaction, it puts all the commands of the same transaction into a queue, and then executes all the commands in the queue. However, during redis transaction processing, that is, when executing commands in the queue, no matter whether an error occurs in a certain row of commands in the transaction, it will neither terminate the execution of subsequent commands nor roll back the data affected by the executed commands. data, all commands will be executed all the time. [0004] Therefore, when a command execution error occurs, the developer needs to determine the data that ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/215G06F16/245G06F16/27
CPCG06F16/215G06F16/245G06F16/27
Inventor 朱湘东田威孙先甫张永颖麦林鑫孙中军詹丽
Owner BANK OF CHINA