Method for Redis data mock, storage medium and server

The invention discloses a method for Redis data mock, a storage medium and a server, and relates to the technical field of smart home/smart home, and the method comprises the steps: constructing a simulation service for simulating a native Redis; under the condition that target Redis service informa...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SHI WEIZHI, ZHANG JUN
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 discloses a method for Redis data mock, a storage medium and a server, and relates to the technical field of smart home/smart home, and the method comprises the steps: constructing a simulation service for simulating a native Redis; under the condition that target Redis service information needing to be simulated is received, determining target migration data in pre-stored Redis migration data; and based on the target migration data, starting a simulation service to simulate the target Redis. The migration work of the Redis data does not need to be repeatedly executed, different target migration data can be determined according to different input target Redis service information so as to simulate different target Redis, and the mock efficiency of the Redis data is improved. 本申请公开了一种用于Redis数据mock的方法、存储介质及服务器,涉及智能家居/智慧家庭技术领域,该方法包括:构建模拟原生Redis的模拟服务;在接收到需要模拟的目标Redis服务信息的情况下,在预先存储的Redis迁移数据中确定目标迁移数据;基于目标迁移数据,启动模拟服务以模拟目标Redis。本申请不需要重复执行Redis数据的迁移工作,可以根据输入不同的目标Redis服务信息确定不同的目标迁移数据,以模拟不同的目标Redis,提高了Redi