Redis BITSET - set binary value

Share:

Description

Sets or clears the bit at offset in the string value stored at key.

Usage

1
  redisSetBit(key, offset, bit)

Arguments

key

redis key

offset

integer index to be updated

bit

binary number to be set

Value

bit binary number with previous value, or '0' if it had not been set before.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.