Skip to content

R.DIFF / R64.DIFF ​

Stores the set difference key1 − key2 into dest.

SyntaxR.DIFF dest key1 key2
64-bitR64.DIFF dest key1 key2
Time complexityO(N)

Arguments ​

  • dest — destination key (overwritten)
  • key1, key2 — both source keys must exist

Reply ​

Simple string OK.

Notes ​

Example ​

bash
127.0.0.1:6379> R.DIFF only_a segment:a segment:b
OK