Data synchronization method and device, computer equipment, storage medium and program product

The invention relates to a data synchronization method and device, computer equipment, a storage medium and a program product. The method comprises the following steps: receiving a data change request; deleting corresponding data in a cache according to the data change request, and locking a corresp...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: XI YAOLEI, WANG YINGHUAN, WU DEZHU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a data synchronization method and device, computer equipment, a storage medium and a program product. The method comprises the following steps: receiving a data change request; deleting corresponding data in a cache according to the data change request, and locking a corresponding data table; performing change operation on data in a database according to the data change request; and loading the data in the database after the change operation into a cache, and unlocking the corresponding data table. By adopting the method, data consistency of the cache and the database is supported. 本申请涉及一种数据同步方法、装置、计算机设备、存储介质和程序产品。所述方法包括:接收数据变更请求;根据所述数据变更请求删除缓存中对应的数据,并锁定对应的数据表;根据所述数据变更请求对数据库中的数据进行变更操作;将变更操作后的数据库中的数据加载至缓存中,并对对应的所述数据表进行解锁。采用本方法支持缓存和数据库的数据一致。