Cache bidirectional synchronization implementation method, device and equipment suitable for read-write
The invention relates to the technical field of database two-way synchronization, in particular to a cache two-way synchronization implementation method and device suitable for read-write, equipment and a storage medium, and the method comprises the following steps: obtaining NodeA request data, car...
Saved in:
Main Authors | , , , , , , , , , , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
02.01.2024
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to the technical field of database two-way synchronization, in particular to a cache two-way synchronization implementation method and device suitable for read-write, equipment and a storage medium, and the method comprises the following steps: obtaining NodeA request data, carrying out updating synchronization processing by using a lua script based on the NodeA request data, obtaining a request parameter, assigning current time to a reqTime field by using the lua script, and obtaining the request parameter; the method comprises the steps of obtaining a reqTime field, judging whether a request parameter accords with a preset value or not based on the reqTime field, obtaining a new request parameter, calling a service execution command based on the new request parameter, storing new request data to a target node Redis A, if the target node Redis A changes, synchronizing the target node Redis A to a node Redis B, and if the target node Redis A changes, synchronizing the target node Redis B |
---|---|
Bibliography: | Application Number: CN202311323896 |