Skip to content

R.SETINTARRAY / R64.SETINTARRAY ​

Replaces the bitmap with the given integer set.

SyntaxR.SETINTARRAY key value [value ...]
64-bitR64.SETINTARRAY key value [value ...]
Time complexityO(K) for K values

Arguments ​

  • key — the bitmap key (existing content is discarded)
  • value ... — the integers to set

Reply ​

Simple string OK.

Example ​

bash
127.0.0.1:6379> R.SETINTARRAY k 5 1 3 1
OK
127.0.0.1:6379> R.GETINTARRAY k
1) (integer) 1
2) (integer) 3
3) (integer) 5