R64.CLEAR
Category | Description |
---|---|
Syntax | R64.CLEAR key |
Time complexity | O(M) |
Supports structures | Bitmap64 |
Command description | Cleanup Roaring key. |
Parameter
- key: The name of the Roaring bitmap key.
Output
- If the operation is successful, the integer number of removed bits is returned.
- If the key does not exist,
nil
is returned. - Otherwise, an error message is returned.
Examples
Basic Usage
bash
$ redis-cli
127.0.0.1:6379> R64.SETINTARRAY foo 1 2 3
127.0.0.1:6379> R64.CLEAR foo
"3"
Usage Notes
- To properly handle bigint values, use RESP3 protocol; otherwise the result will be returned as a string