GETBIT
Reads the bit at a string's specified bit offset.
Bitmaps · Example verified
Syntax covered here
GETBIT key offsetThe case reads a bit previously enabled with SETBIT.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SETBIT bits 1 1
0
# connection: default
> GETBIT bits 1
1