Skip to content

Commit

Permalink
Deprecate TOPK.COUNT command (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Oct 12, 2022
1 parent 1f742ba commit c2e101b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -4327,6 +4327,7 @@ public List<Boolean> topkQuery(String key, String... items) {
return executeCommand(commandObjects.topkQuery(key, items));
}

@Deprecated
@Override
public List<Long> topkCount(String key, String... items) {
return executeCommand(commandObjects.topkCount(key, items));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public interface TopKFilterCommands {
* @param key
* @param items
* @return count for item
* @deprecated As of RedisBloom 2.4, this command is regarded as deprecated.
*/
@Deprecated
List<Long> topkCount(String key, String... items);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public interface TopKFilterPipelineCommands {

Response<List<Boolean>> topkQuery(String key, String... items);

/**
* @deprecated As of RedisBloom 2.4, this command is regarded as deprecated.
*/
@Deprecated
Response<List<Long>> topkCount(String key, String... items);

Response<List<String>> topkList(String key);
Expand Down

0 comments on commit c2e101b

Please sign in to comment.