BITFIELD_RO

Since 1.1.0Bitmaps

Syntax

BITFIELD_RO key [GET encoding offset [GET encoding offset ...]]
  • Flags: readonly
  • ACL categories: @bitmap, @read, @slow
  • Arity: -2

BITFIELD with GET only: it only reads, so it can be sent to a read-only replica.

Reply

  • An array with one element per GET.
  • ERR BITFIELD_RO only supports the GET subcommand for anything else.

Examples

> BITFIELD bf SET u8 0 244
1) (integer) 0
> BITFIELD_RO bf GET u8 0
1) (integer) 244