Skip to content

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


@valkey/valkey-glide / Commands / BitFieldOverflow

Class: BitFieldOverflow

Represents the "OVERFLOW" subcommand that determines the result of the "SET" or "INCRBY" bitfield subcommands when an underflow or overflow occurs.

Implements

Constructors

Constructor

new BitFieldOverflow(overflowControl): BitFieldOverflow

Creates an instance of BitFieldOverflow.

Parameters

overflowControl

BitOverflowControl

The desired overflow behavior.

Returns

BitFieldOverflow

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