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
当我浏览 https://redis.io/commands/bitpos/, 我发现:
我认为输出应该是8,于是在网页端redis验证了一下,结果如下:
8
完整的网页输出:
redis> SET mykey "\xff\xf0\x00" "OK" redis> BITPOS mykey 0 (integer) 0 redis> SET mykey "\x00\xff\xf0" "OK" redis> BITPOS mykey 1 0 (integer) 1 redis> BITPOS mykey 1 2 (integer) 18 redis> BITPOS mykey 1 2 -1 BYTE (integer) 18 redis> BITPOS mykey 1 7 15 BIT (integer) 9 redis> set mykey "\x00\x00\x00" "OK" redis> BITPOS mykey 1 (integer) 1 redis> BITPOS mykey 1 7 -3 BIT (integer) 9 redis> get mykey "\x00\x00\x00"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
当我浏览 https://redis.io/commands/bitpos/,
我发现:
我认为输出应该是
8
,于是在网页端redis验证了一下,结果如下:完整的网页输出:
The text was updated successfully, but these errors were encountered: