Skip to content

R64.CLEAR

CategoryDescription
SyntaxR64.CLEAR key
Time complexityO(M)
Supports structuresBitmap64
Command descriptionCleanup 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