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

redis兼容命令type #1541

Closed
ForestLH opened this issue May 22, 2023 · 1 comment · Fixed by #1586
Closed

redis兼容命令type #1541

ForestLH opened this issue May 22, 2023 · 1 comment · Fixed by #1586

Comments

@ForestLH
Copy link
Contributor

使用type时候,当pika同一个key可以有不同的数据类型时候,此时只会显示一种类型,不知道这个是不是全部显示出来好一点儿,还是就这样只显示一种类型
/src/storage/src/storage.cc

// the sequence is kv, hash, list, zset, set
Status Storage::Type(const std::string& key, std::string* type) {
...
}
@AlexStocks
Copy link
Collaborator

使用 type 时候,当 pika 同一个 key 可以有不同的数据类型时候,此时只会显示一种类型,不知道这个是不是全部显示出来好一点儿,还是就这样只显示一种类型 /src/storage/src/storage.cc

// the sequence is kv, hash, list, zset, set
Status Storage::Type(const std::string& key, std::string* type) {
...
}

可以加一个 pika 独有的命令 ptype

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

Successfully merging a pull request may close this issue.

2 participants