Home / node / Commands / classes / BitFieldSet @valkey/valkey-glide
@valkey/valkey-glide / Commands / BitFieldSet
Class: BitFieldSet
Represents the "SET" subcommand for setting bits in the binary representation of the string stored in key
.
Implements
Constructors
Constructor
new BitFieldSet(
encoding
,offset
,value
):BitFieldSet
Creates an instance of BitFieldSet
Parameters
encoding
The bit encoding for the subcommand.
offset
The offset in the array of bits where the value will be set.
value
number
The value to set the bits in the binary value to.
Returns
BitFieldSet
Methods
toArgs()
toArgs():
string
[]
Returns the subcommand as a list of string arguments to be used in the bitfield or bitfieldReadOnly commands.
Returns
string
[]
The subcommand as a list of string arguments.