We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
del在删除字符串类型key的时候没有问题,但是删除hash类型key的时候,无法删除。 原因是: hash键值存储在leveldb的形式是:
期待回复,谢谢
The text was updated successfully, but these errors were encountered:
用 ds_hdel
ds_hdel <KEY> 删除整个hash ds_hdel <KEY> <FIELD> 删除某个 field ds_hdel <KEY> <FIELD_1> <FIELD_2> 删除多个 fields
https://github.com/qiye/redis-storage/blob/master/src/ds.c#L1874
Sorry, something went wrong.
谢谢回复。
感觉这样缩小了del的使用范围,可能会带来隐患。建议在文档中说明一下吧。
No branches or pull requests
del在删除字符串类型key的时候没有问题,但是删除hash类型key的时候,无法删除。
原因是:
hash键值存储在leveldb的形式是:
ds_delete和rl_delet实现中,没有区分key的类型,均是根据key直接删除,对于hash值的删除肯定不成功。
觉得hash类型key的删除可以借鉴ds_hgetall方法。
期待回复,谢谢
The text was updated successfully, but these errors were encountered: