Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS syntax error in redis-bloom.svg #542

Open
TianMing2018 opened this issue Feb 7, 2023 · 0 comments
Open

CMS syntax error in redis-bloom.svg #542

TianMing2018 opened this issue Feb 7, 2023 · 0 comments

Comments

@TianMing2018
Copy link
Contributor

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant