Skip to content

Commit 3de05ed

Browse files
authored
Update bloomfilters.md to fix the example and mention the reply (#379)
Signed-off-by: Binbin <[email protected]>
1 parent e804e8c commit 3de05ed

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

topics/bloomfilters.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Example of default bloom filter information:
192192

193193
```bash
194194
127.0.0.1:6379> BF.ADD default_filter item
195-
1
195+
(integer) 1
196196
127.0.0.1:6379> BF.INFO default_filter
197197
1) Capacity
198198
2) (integer) 100
@@ -231,10 +231,15 @@ You can modify these default values using the CONFIG SET command. However, note
231231
Example usage of changing all the different properties:
232232
```bash
233233
127.0.0.1:6379> CONFIG SET bf.bloom-fp-rate 0.001
234+
OK
234235
127.0.0.1:6379> CONFIG SET bf.bloom-capacity 1000
236+
OK
235237
127.0.0.1:6379> CONFIG SET bf.bloom-expansion 4
238+
OK
236239
127.0.0.1:6379> CONFIG SET bf.bloom-tightening-ratio 0.6
237-
127.0.0.1:6379> CONFIG SET bf.bloom-use-random-seed false
240+
OK
241+
127.0.0.1:6379> CONFIG SET bf.bloom-use-random-seed no
242+
OK
238243
```
239244

240245
### Memory usage limit
@@ -244,6 +249,7 @@ The `bf.bloom-memory-usage-limit` configuration (default 128MB) controls the max
244249
Example usage of increasing the limit:
245250
```bash
246251
127.0.0.1:6379> CONFIG SET bf.bloom-memory-usage-limit 268435456
252+
OK
247253
```
248254

249255
Having a limit on the max memory per bloom object prevents them from growing unbounded, thus maintaining server performance during serialization.

0 commit comments

Comments
 (0)