SETBIT
Set a single bit in a string.
Arguments
keybodystrrequired
The key of the bitset
offsetbodyintrequired
Specify the offset at which to set the bit.
valuebody0 | 1required
The bit to set
Response
0 | 1required
The original bit value stored at offset.
Example
original_bit = redis.setbit(key, 4, 1)