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

Adding connection step to bloom filter examples #2478

Merged
merged 2 commits into from Nov 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/redismodules.rst
Expand Up @@ -13,6 +13,7 @@ These are the commands for interacting with the `RedisBloom module <https://redi

.. code-block:: python

r = redis.Redis()
import redis
filter = redis.bf().create("bloom", 0.01, 1000)
filter.add("bloom", "foo")
Expand All @@ -21,6 +22,7 @@ These are the commands for interacting with the `RedisBloom module <https://redi

.. code-block:: python

r = redis.Redis()
import redis
filter = redis.cf().create("cuckoo", 1000)
filter.add("cuckoo", "filter")
Expand All @@ -29,6 +31,7 @@ These are the commands for interacting with the `RedisBloom module <https://redi

.. code-block:: python

r = redis.Redis()
import redis
r = redis.cms().initbydim("dim", 1000, 5)
r.cms().incrby("dim", ["foo"], [5])
Expand All @@ -38,6 +41,7 @@ These are the commands for interacting with the `RedisBloom module <https://redi

.. code-block:: python

r = redis.Redis()
import redis
r = redis.topk().reserve("mytopk", 3, 50, 4, 0.9)
info = r.topk().info("mytopk)
Expand Down