io.quarkus.redis.datasource.hyperloglog.ReactiveTransactionalHyperLogLogCommands Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-redis-client Show documentation
Show all versions of quarkus-redis-client Show documentation
Connect to Redis in either imperative or reactive style
package io.quarkus.redis.datasource.hyperloglog;
import io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands;
import io.smallrye.mutiny.Uni;
public interface ReactiveTransactionalHyperLogLogCommands extends ReactiveTransactionalRedisCommands {
/**
* Execute the command PFADD.
* Summary: Adds the specified elements to the specified HyperLogLog.
* Group: hyperloglog
* Requires Redis 2.8.9
*
* @param key the key
* @param values the values
* @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure
* otherwise. In the case of failure, the transaction is discarded.
*/
Uni pfadd(K key, V... values);
/**
* Execute the command PFMERGE.
* Summary: Merge N different HyperLogLogs into a single one.
* Group: hyperloglog
* Requires Redis 2.8.9
*
* @param destkey the key
* @param sourcekeys the source keys
*/
Uni pfmerge(K destkey, K... sourcekeys);
/**
* Execute the command PFCOUNT.
* Summary: Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
* Group: hyperloglog
* Requires Redis 2.8.9
*
* @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure
* otherwise. In the case of failure, the transaction is discarded.
*/
Uni pfcount(K... keys);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy