Class BfReserveArgs
java.lang.Object
io.quarkus.redis.datasource.bloom.BfReserveArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Constructor Details
-
BfReserveArgs
public BfReserveArgs()
-
-
Method Details
-
nonScaling
Prevents the filter from creating additional sub-filters if initial capacity is reached. Non-scaling filters requires slightly less memory than their scaling counterparts. The filter returns an error when capacity is reached.- Returns:
- the current
BfReserveArgs
-
expansion
Set the expansion factory. When capacity is reached, an additional sub-filter is created. The size of the new sub-filter is the size of the last sub-filter multiplied by expansion. If the number of elements to be stored in the filter is unknown, we recommend that you use an expansion of 2 or more to reduce the number of sub-filters. Otherwise, we recommend that you use an expansion of 1 to reduce memory consumption. The default expansion value is 2.- Parameters:
expansion
- the expansion factor, must be positive- Returns:
- the current
BfReserveArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-