Skip to content

R64.SETBITARRAY

CategoryDescription
SyntaxR64.SETBITARRAY key value
Time complexityO(C)
Supports structuresBitmap64
Command descriptionCreates a Roaring key based on the specified bit array string.

Parameter

  • key: The key of the Roaring data structure.
  • value: A string of 0s and 1s that represents the bit array.

Output

  • If the operation is successful, OK is returned.
  • Otherwise, an error message is returned.

Examples

Basic Usage

$ redis-cli
127.0.0.1:6379> R64.SETBITARRAY foo 10101001
OK

Usage Notes

  • If the key already exists, this command overwrites the data in the key