Learn R Programming

rredis (version 1.7.0)

redisSetBit: Redis BITSET - set binary value

Description

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

Usage

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.