逻辑大致如下 if key.IsEmpty() { if key.ModuleTypeSetValue(ModuleType, unsafe.Pointer(&bs)) == rm.ERR { ctx.ReplyWithError("ERR Failed to set module type value") return rm.ERR } } else { //todo 读取原来的值 // 处理 // 覆盖写入 这里的覆盖写入使用啥api,主要是类似set 这种 }