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

Feature Request: topkList with counts #3488

Closed
kchro3 opened this issue Jul 28, 2023 · 0 comments · Fixed by #3495
Closed

Feature Request: topkList with counts #3488

kchro3 opened this issue Jul 28, 2023 · 0 comments · Fixed by #3495
Labels

Comments

@kchro3
Copy link

kchro3 commented Jul 28, 2023

Expected behavior

Hi folks, the TOPK.LIST command in Redis Bloom supports a WITHCOUNT parameter, which will return the counts along with the approximate list of items.

https://redis.io/commands/topk.list/

It would be great if this were supported by Jedis.

Expected API

public interface TopKFilterPipelineCommands {
  ...
  Response<List<String>> topkList(String key);

  Response<List<Tuple<String, Long>>> topkListWithCount(String key);
  ...
}

Actual behavior

There is no such functionality, so I think that I'll need to use eval and a Lua script.

Steps to reproduce:

N/A

Redis / Jedis Configuration

N/A

Jedis version:

4.4.0-m1

Redis version:

redis_version:6.2.6

Java version:

8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants