diff --git a/redis/commands/bf/commands.py b/redis/commands/bf/commands.py index e911efc621..ab87037935 100644 --- a/redis/commands/bf/commands.py +++ b/redis/commands/bf/commands.py @@ -18,6 +18,7 @@ CF_INSERT = "CF.INSERT" CF_INSERTNX = "CF.INSERTNX" CF_EXISTS = "CF.EXISTS" +CF_MEXISTS = "CF.MEXISTS" CF_DEL = "CF.DEL" CF_COUNT = "CF.COUNT" CF_SCANDUMP = "CF.SCANDUMP" @@ -233,6 +234,15 @@ def exists(self, key, item): params = [key, item] return self.execute_command(CF_EXISTS, *params) + def mexists(self, key, *items): + """ + Check whether `items` exist in Cuckoo Filter `key`. + For more information see `CF.MEXISTS `_. + """ # noqa + params = [key] + params += items + return self.execute_command(CF_MEXISTS, *params) + def delete(self, key, item): """ Delete `item` from `key`.