You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/redismodules.rst
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@ These are the commands for interacting with the `RedisBloom module <https://redi
12
12
**Create and add to a bloom filter**
13
13
14
14
.. code-block:: python
15
-
16
-
import redis
15
+
16
+
import redis
17
17
r = redis.Redis()
18
-
r.bf().create("bloom", 0.01, 1000)
18
+
r.bf().create("bloom", 0.01, 1000)
19
19
r.bf().add("bloom", "foo")
20
20
21
21
**Create and add to a cuckoo filter**
22
22
23
23
.. code-block:: python
24
24
25
-
import redis
25
+
import redis
26
26
r = redis.Redis()
27
27
r.cf().create("cuckoo", 1000)
28
28
r.cf().add("cuckoo", "filter")
@@ -107,7 +107,8 @@ Examples of how to combine search and json can be found `here <examples/search_j
107
107
RediSearch Commands
108
108
*******************
109
109
110
-
These are the commands for interacting with the `RediSearch module <https://redisearch.io>`_. Below is a brief example, as well as documentation on the commands themselves.
110
+
These are the commands for interacting with the `RediSearch module <https://redisearch.io>`_. Below is a brief example, as well as documentation on the commands themselves. In the example
111
+
below, an index named *my_index*is being created. When an index name isnot specified, an index named *idx*is created.
111
112
112
113
**Create a search index, and display its information**
113
114
@@ -117,8 +118,9 @@ These are the commands for interacting with the `RediSearch module <https://redi
0 commit comments