GETBIT key offset

    Time complexity: O(1)

    Returns the bit value at offset in the string value stored at key.

    Integer reply: the bit value stored at offset.

    *Examples

    redis> SETBIT mykey 7 1

    redis> GETBIT mykey 7

    redis> GETBIT mykey 100

    redis>