Bitmap

GETBIT

Retrieve a single bit.

Arguments

keybodystrrequired

The key of the bitset

offsetbodyintrequired

Specify the offset at which to get the bit.

Response

intrequired

The bit value stored at offset.

Example
bit = redis.getbit(key, 4)
Loading search…