Skip to content

Home / node / Commands / classes / BitFieldGet @valkey/valkey-glide


@valkey/valkey-glide / Commands / BitFieldGet

Class: BitFieldGet

Represents the "GET" subcommand for getting a value in the binary representation of the string stored in key.

Implements

Constructors

Constructor

new BitFieldGet(encoding, offset): BitFieldGet

Creates an instance of BitFieldGet.

Parameters

encoding

BitEncoding

The bit encoding for the subcommand.

offset

BitFieldOffset

The offset in the array of bits from which to get the value.

Returns

BitFieldGet

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.

Implementation of

BitFieldSubCommands.toArgs