Skip to content

如果一个key已存在,怎么覆盖写入? #15

@jilieryuyi

Description

@jilieryuyi

逻辑大致如下
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 这种
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions