Skip to content

Commit

Permalink
Fixes #2415, adds a connect step to bloom commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nermiller committed Nov 29, 2022
1 parent f492f85 commit 9812650
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/redismodules.rst
Original file line number Diff line number Diff line change
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

0 comments on commit 9812650

Please sign in to comment.