Skip to content

R64.GETBITARRAY

CategoryDescription
SyntaxR64.GETBITARRAY key
Time complexityO(C)
Supports structuresBitmap64
Command descriptionRetrieves a string that consists of bit values of 0 and 1 in a Roaring key

Parameter

  • key: The name of the Roaring bitmap key.

Output

  • If the operation is successful, the string of bit array are returned.
  • If the key does not exist, a empty string is returned.
  • Otherwise, an error message is returned.

Examples

Basic Usage

$ redis-cli
127.0.0.1:6379> R64.SETBITARRAY foo 101101
127.0.0.1:6379> R64.GETBITARRAY foo
"101101"