Upstash Documentation home page
Search...
⌘K
Ask AI
Discord
Blog
X
Console
Console
Search...
Navigation
Bitmap
GETBIT
General
Redis
Kafka
Vector
QStash
Open Source
DevOps
Introduction
Get Started
Concepts
Serverless
Scale to Zero
Global Replication
Access Anywhere
Help
Account & Teams
Support & Contact Us
Professional Support
SLA
Uptime Monitor
Legal
Compliance
Integration with Third Parties & Partnerships
Example
Copy
Ask AI
const
bit
=
await
redis
.
getbit
(
key
,
4
);
Bitmap
GETBIT
Retrieve a single bit.
Example
Copy
Ask AI
const
bit
=
await
redis
.
getbit
(
key
,
4
);
Arguments
key
string
required
The key of the bitset
offset
integer
required
Specify the offset at which to get the bit.
Response
The bit value stored at offset.
Example
Copy
Ask AI
const
bit
=
await
redis
.
getbit
(
key
,
4
);
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Assistant
Responses are generated using AI and may contain mistakes.