Comments (1)
According to our chat app, the reason why bitkey 00 -1 BIT fails is because the BIT command in Redis expects the second argument to be a binary string, not a decimal number. In your case, 00 is interpreted as a decimal number, which causes the command to fail.
To fix this, you can specify the second argument as a binary string using the 0b prefix. Here's the corrected command:
BITPOS bitkey 0 0b00 -1
This command will search for the first occurrence of the bit 0 in the range specified by -1, starting from the leftmost bit position. The 0b prefix indicates that the argument is a binary string.
BITPOSRedis bitmapsBITOPBITCOUNT
from docs.
Related Issues (20)
- Migrate a database to Active-Active HOT 2
- TS.MRANGE filter labels!=. not work
- Get started HOT 1
- RediSearch 2.8 release notes - there is no mention about 2.8.13 HOT 1
- Install Redis on macOS - Dark mode HOT 2
- Redis Data Integration HOT 3
- TOPK.LIST - The time complexity is wrong HOT 2
- TLS HOT 2
- CLIENT UNBLOCK - return value doc is misleading (Redis 7.2.4) HOT 2
- Create a Pro database with a new subscription HOT 1
- Redis configuration file example HOT 2
- Manage API tasks HOT 1
- Redis Stack and Redis Enterprise HOT 2
- Redis as a document database quick start guide HOT 2
- CLUSTER MEET HOT 1
- Typo: Redis sets HOT 2
- Strange formatting/extra text
- Audit connection events - small fix required
- pleRedis Insight configuration settings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.