Interface ReactiveTransactionalBloomCommands<K,V>
-
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalBloomCommandsImpl
public interface ReactiveTransactionalBloomCommands<K,V> extends ReactiveTransactionalRedisCommands
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
bfadd(K key, V value)
Execute the command BF.ADD.io.smallrye.mutiny.Uni<Void>
bfexists(K key, V value)
Execute the command BF.EXISTS.io.smallrye.mutiny.Uni<Void>
bfinsert(K key, BfInsertArgs args, V... values)
Execute the command BF.INSERT.io.smallrye.mutiny.Uni<Void>
bfmadd(K key, V... values)
Execute the command BF.MADD.io.smallrye.mutiny.Uni<Void>
bfmexists(K key, V... values)
Execute the command BF.MEXISTS.io.smallrye.mutiny.Uni<Void>
bfreserve(K key, double errorRate, long capacity)
Execute the command BF.RESERVE.io.smallrye.mutiny.Uni<Void>
bfreserve(K key, double errorRate, long capacity, BfReserveArgs args)
Execute the command BF.RESERVE.-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Method Detail
-
bfadd
io.smallrye.mutiny.Uni<Void> bfadd(K key, V value)
Execute the command BF.ADD. Summary: Adds the specified element to the specified Bloom filter. Group: bloomIf the bloom filter does not exist, it creates a new one.
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfexists
io.smallrye.mutiny.Uni<Void> bfexists(K key, V value)
Execute the command BF.EXISTS. Summary: Determines whether an item may exist in the Bloom Filter or not. Group: bloom- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfmadd
io.smallrye.mutiny.Uni<Void> bfmadd(K key, V... values)
Execute the command BF.MADD. Summary: Adds one or more items to the Bloom Filter and creates the filter if it does not exist yet. This command operates identically to BF.ADD except that it allows multiple inputs and returns multiple values. Group: bloom- Parameters:
key
- the keyvalues
- the values, must not benull
, must not containnull
, must not be empty.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfmexists
io.smallrye.mutiny.Uni<Void> bfmexists(K key, V... values)
Execute the command BF.MEXISTS. Summary: Determines if one or more items may exist in the filter or not. Group: bloom- Parameters:
key
- the keyvalues
- the values, must not benull
, must not containnull
, must not be empty.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfreserve
io.smallrye.mutiny.Uni<Void> bfreserve(K key, double errorRate, long capacity)
Execute the command BF.RESERVE. Summary: Creates an empty Bloom Filter with a single sub-filter for the initial capacity requested and with an upper bounderror_rate
. Group: bloom- Parameters:
key
- the keyerrorRate
- The desired probability for false positives. The rate is a decimal value between 0 and 1.capacity
- The number of entries intended to be added to the filter.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfreserve
io.smallrye.mutiny.Uni<Void> bfreserve(K key, double errorRate, long capacity, BfReserveArgs args)
Execute the command BF.RESERVE. Summary: Creates an empty Bloom Filter with a single sub-filter for the initial capacity requested and with an upper bounderror_rate
. Group: bloom- Parameters:
key
- the keyerrorRate
- The desired probability for false positives. The rate is a decimal value between 0 and 1.capacity
- The number of entries intended to be added to the filter.args
- the extra parameters- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bfinsert
io.smallrye.mutiny.Uni<Void> bfinsert(K key, BfInsertArgs args, V... values)
Execute the command BF.INSERT. Summary: BF.INSERT is a sugarcoated combination ofBF.RESERVE
andBF.ADD
. It creates a new filter if the key does not exist using the relevant arguments. Next, allITEMS
are inserted. Group: bloom- Parameters:
key
- the keyargs
- the creation parametersvalues
- the value to add, must not containnull
, must not benull
, must not be empty- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-