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.
bit = redis.getbit(key, 4)