Open TianMing2018 opened 1 year ago
the CMS example have syntax errors and using wrong 'list' command, the content of picture should be this
# Reserve a new leaderboard filter > TOPK.RESERVE trending-stocks 12 50 4 0.9 "OK" # Add a new entries to the leaderboard > TOPK.ADD trending-stocks AAPL AMD MSFT INTC GOOG FB NFLX GME AMC TSLA 1) "null" ... # Get the leaderboard > TOPK.LIST trending-stocks 1) "AAPL" 2) "AMD" 3) "MSFT" ... # Get information about the leaderboard > TOPK.INFO trending-stocks 1) "k" 2) "12" 3) "width" 4) "50" 5) "depth" 6) "4" 7) "decay" 8) "0.90000000000000002" # Initializes a Count-Min Sketch > CMS.INITBYDIM cmstest 2000 5 "OK" # Increase the count of entries to the leaderboard information > CMS.INCRBY cmstest PEP 8 KO 16 AMZN 6 1) "8" 2) "16" 3) "6" # Returns the count for one or more items in a sketch > CMS.QUERY cmstest AAPL AMD AMZN PEP 1) "0" 2) "0" 3) "6" 4) "8" # Returns width, depth and total count of the sketch > CMS.INFO cmstest 1) "width" 2) "2000" 3) "depth" 4) "5" 5) "count" 6) "30"
the CMS example have syntax errors and using wrong 'list' command, the content of picture should be this