R64.SETRANGE
Category | Description |
---|---|
Syntax | R64.SETRANGE key start end |
Time complexity | O(C) |
Supports structures | Bitmap64 |
Command description | Sets the bits within the specified range in a Roaring key to a value of 1. The range is a closed interval. For example, if you run the R64.SETRANGE foo 1 3 command, the system creates the 0111 foo key. |
Parameter
- key: The name of the Roaring bitmap key.
- start: The start value of the interval. Valid values: 0 to 2^32.
- value: The end value of the interval. Valid values: 0 to 2^32.
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.SETRANGE foo 1 3
OK
Usage Notes
- If the key doesn't exist, a new Roaring bitmap is created automatically.