io.quarkus.redis.datasource.countmin.ReactiveCountMinCommands Maven / Gradle / Ivy
Show all versions of quarkus-redis-client Show documentation
package io.quarkus.redis.datasource.countmin;
import java.util.List;
import java.util.Map;
import io.quarkus.redis.datasource.ReactiveRedisCommands;
import io.smallrye.mutiny.Uni;
/**
* Allows executing commands from the {@code count-min} group.
* These commands require the Redis Bloom module (this modules also
* include Count-Min Sketches) to be installed in the Redis server.
*
* See the count-min command list for further information about
* these commands.
*
*
* @param the type of the key
* @param the type of the value stored in the sketch
*/
public interface ReactiveCountMinCommands extends ReactiveRedisCommands {
/**
* Execute the command CMS.INCRBY.
* Summary: Increases the count of item by increment. Multiple items can be increased with one call.
* Group: count-min
*
*
* @param key the name of the sketch, must not be {@code null}
* @param value the value, must not be {@code null}
* @param increment the increment
* @return a uni producing the updated min-count for the added value
**/
Uni cmsIncrBy(K key, V value, long increment);
/**
* Execute the command CMS.INCRBY.
* Summary: Increases the count of item by increment. Multiple items can be increased with one call.
* Group: count-min
*
*
* @param key the name of the sketch, must not be {@code null}
* @param couples the set of value/increment pair, must not be {@code null}, must not be empty
* @return a uni producing a map containing the updated min-count for each added value
**/
Uni