Module Hub Beta

TOPK.DEBUG

command key [arg]

A debugging helper. command should be:

  • MAKE – requires an integer arg, fills key with 1..arg observations with respective frequencies.
  • SHOW – displays useful (?) information about the TopK Sorted Set.

Return Value

String reply: “OK” for the MAKE subcommand.

Array reply: meta information for the SHOW subscommand.

Examples

redis> TOPK.DEBUG MAKE tk 10
OK
redis> ZRANGE tk 1 10 WITHSCORES
1) “1”
2) “1”
3) “2”
4) “2”
5) “3”
6) “3”
7) “4”
8) “4”
9) “5”
10) “5”
11) “6”
12) “6”
13) “7”
14) “7”
15) “8”
16) “8”
17) “9”
18) “9”
19) “10”
20) “10”
redis> TOPK.DEBUG SHOW tk
zset size: 10 (+1 meta), score offset: 0, sum: 55

© 2017 Redis Labs, Inc. All rights reserved.