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
description: 'RedisBloom supports multiple module configuration parameters. All of
13
-
these parameters can only be set at load-time.
14
-
15
-
'
12
+
description: Redis probabilistic data structures support multiple configuration parameters.
16
13
linkTitle: Configuration
17
14
title: Configuration Parameters
18
15
weight: 100
19
16
---
17
+
{{< note >}}
18
+
As of Redis Community Edition 8.0, configuration parameters for the probabilistic data structures are now set in the following ways:
19
+
* At load time via your `redis.conf` file.
20
+
* At run time (where applicable) using the [`CONFIG SET`]({{< relref "/commands/config-set" >}}) command.
21
+
{{< /note >}}
20
22
21
-
## Setting configuration parameters on module load
22
23
23
-
Setting configuration parameters at load-time is done by appending arguments after the `--loadmodule` argument when starting a server from the command line or after the `loadmodule` directive in a Redis config file. For example:
24
+
## Redis probabilistic data structure configuration parameters
24
25
25
-
In [redis.conf]({{< relref "/operate/oss_and_stack/management/config" >}}):
26
+
The following table summarizes which Bloom filter configuration parameters can be set at run-time, and compatibility with Redis Enterprise and Redis Cloud
26
27
27
-
```sh
28
-
loadmodule ./redisbloom.so [OPT VAL]...
29
-
```
28
+
| Old parameter name | New parameter name | Run-time | Redis<br />Enterprise | Redis<br />Cloud |
From the [Redis CLI]({{< relref "/develop/tools/cli" >}}), using the [MODULE LOAD]({{< relref "/commands/module-load" >}}) command:
34
+
The following table summarizes which Cuckoo filter configuration parameters can be set at run-time, and compatibility with Redis Enterprise and Redis Cloud.
A filter should always be sized for the expected capacity and the desired error rate.
46
+
Using the `INSERT` family commands with the default values should be used in cases where many small filters exist and the expectation is most will remain at around the default sizes.
47
+
Not optimizing a filter for its intended use will result in degradation of performance and memory efficiency.
Valid range: `[0 .. 1]`; consider limiting the range to `[0 .. 0.25]`.
53
59
54
-
## Default parameters
60
+
Default: `0.01`
55
61
56
-
!!! warning "Note on using initialization default sizes"
57
-
A filter should always be sized for the expected capacity and the desired error-rate.
58
-
Using the `INSERT` family commands with the default values should be used in cases where many small filter exist and the expectation is most will remain at about that size.
59
-
Not optimizing a filter for its intended use will result in degradation of performance and memory efficiency.
The maximum number of expansions for Cuckoo filters.
125
+
126
+
Type: integer
127
+
128
+
Valid range: `[1 .. 65535]`
129
+
130
+
Default: `32`
131
+
132
+
### cf-max-iterations
133
+
134
+
Added in v8.0.0
135
+
136
+
The maximum number of iterations for Cuckoo filters.
137
+
138
+
Type: integer
139
+
140
+
Valid range: `[1 .. 65535]`
141
+
142
+
Default: `20`
143
+
144
+
## Setting configuration parameters on module load (deprecated)
145
+
146
+
These methods are deprecated beginning with Redis CE v8.0.0.
147
+
148
+
Setting configuration parameters at load-time is done by appending arguments after the `--loadmodule` argument when starting a server from the command line or after the `loadmodule` directive in a Redis config file. For example:
149
+
150
+
In [redis.conf]({{< relref "/operate/oss_and_stack/management/config" >}}):
0 commit comments