Skip to content

R64.OPTIMIZE

CategoryDescription
SyntaxR64.OPTIMIZE key
Time complexityO(M)
Supports structuresBitmap64
Command descriptionOptimizes the storage of a Roaring key. If the key is relatively large and is used mainly for read operations after the key is created, you can run this command.

Parameter

  • key: The name of the Roaring bitmap key.

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.OPTIMIZE foo
OK