diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-09-04 10:53:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 10:53:22 +0300 |
commit | 744cb09055e464ceb233d80d2c4efa6ec2119aad (patch) | |
tree | 735f822dc31f19f382662dfddb3b4243a226fd69 /redis | |
parent | 37344582ec8689035d9106a2141409e78be2606d (diff) | |
download | redis-py-744cb09055e464ceb233d80d2c4efa6ec2119aad.tar.gz |
Mark `TOPK.COUNT` as deprecated (#2363)
* deprecate
* linters
Diffstat (limited to 'redis')
-rw-r--r-- | redis/commands/bf/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/commands/bf/commands.py b/redis/commands/bf/commands.py index 9c3c97c..3d085e6 100644 --- a/redis/commands/bf/commands.py +++ b/redis/commands/bf/commands.py @@ -1,3 +1,5 @@ +from deprecated import deprecated + from redis.client import NEVER_DECODE from redis.exceptions import ModuleError from redis.utils import HIREDIS_AVAILABLE @@ -322,6 +324,7 @@ class TOPKCommands: """ # noqa return self.execute_command(TOPK_QUERY, key, *items) + @deprecated(version="4.4.0", reason="deprecated since redisbloom 2.4.0") def count(self, key, *items): """ Return count for one `item` or more from `key`. |