redis bitcount命令返回语法错误
将mykey设置为foobar value redis的钥匙之后 我想获得Mykey的比分。 此命令在redis-cli中给我一个错误:bitcount mykey 2 3字节
(error)err语法错误
我如何解决此问题?
after set myKey as key in Redis with foobar value
I want to get the BITCOUNT of myKey.
this command in Redis-CLI giving me an error: BITCOUNT myKey 2 3 BYTE
(error) ERR syntax error
how can I solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
字节
参数是相当新的,并且(将)在REDIS 7.0中添加。到目前为止,仅发布7.0.0rc3,但没有GA。我认为您正在使用Redis 7版本?
BYTE
argument is fairly new and (will be) added in Redis 7.0. So far, only 7.0.0rc3 is released but no GA.I assume you are using a pre Redis 7 version?