Upstash Documentation home page
Search...
⌘K
Ask AI
Discord
Blog
Twitter
Console
Console
Search...
Navigation
Bitmap
GETBIT
Overview
Redis
Vector
QStash
Workflow
Search
Developer API
Overall
Quickstarts
Features
SDKs
Typescript
Overview
Get Started
Commands
Overview
Auth
Bitmap
BITCOUNT
BITOP
BITPOS
GETBIT
SETBIT
Generic
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
Stream
String
Transactions
Deployment
Pipelining
Advanced
Retries
Troubleshooting
Developing or Testing
Python
Ratelimit (TS)
Ratelimit (PY)
How To
Integrations
Tutorials
Troubleshooting
Help
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
BITPOS
SETBIT
Assistant
Responses are generated using AI and may contain mistakes.