BITFIELD_RO key [GET encoding offset [GET encoding offset ...]]
Time complexity: O(1) for each subcommand specified
Read-only variant of the
It is like the original
BITFIELD but only accepts
GET subcommand and can safely be used in read-only replicas.
Since the original
INCRBY options it is technically flagged as a writing command in the command table.
For this reason read-only replicas in a Dragonfly Cluster will redirect it to the master instance even if the connection is in read-only mode.
BITFIELD for more details.
BITFIELD_RO hello GET i8 16
Array reply: An array with each entry being the corresponding result of the subcommand given at the same position.