Skip to content

R64.MIN

CategoryDescription
SyntaxR64.DIFF destkey key1 key2
Time complexityO(C * M)
Supports structuresBitmap64
Command descriptionPerforms difference operation on Roaring Bitmaps and stores the result in destkey

Parameter

  • destkey: The destination key that stores the result (Roaring data structure).
  • key: The key of the Roaring data structure.

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.SETINTARRAY foo1 3 4 5
OK
127.0.0.1:6379> R64.SETINTARRAY foo2 1 4 6
OK
127.0.0.1:6379> R64.DIFF foo_dest foo1 foo2
OK
127.0.0.1:6379> R64.GETINTARRAY foo_dest
1) (integer) 3
2) (integer) 5
(integer) 5