Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jilieryuyi opened this issue Apr 26, 2024 · 0 comments
Open

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

jilieryuyi opened this issue Apr 26, 2024 · 0 comments

Comments

@jilieryuyi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant