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
Python
Overview
Getting Started
Features
Commands
Overview
Auth
Bitmap
BITCOUNT
BITFIELD
BITOP
BITPOS
GETBIT
Generic
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
String
Ratelimit (TS)
Ratelimit (PY)
How To
Integrations
Tutorials
Troubleshooting
Help
Example
Copy
Ask AI
bit
=
redis.getbit(key,
4
)
Bitmap
GETBIT
Retrieve a single bit.
Example
Copy
Ask AI
bit
=
redis.getbit(key,
4
)
Arguments
key
str
required
The key of the bitset
offset
int
required
Specify the offset at which to get the bit.
Response
The bit value stored at offset.
Example
Copy
Ask AI
bit
=
redis.getbit(key,
4
)
Was this page helpful?
Yes
No
Suggest edits
Raise issue
BITPOS
DEL
Assistant
Responses are generated using AI and may contain mistakes.