All Downloads are FREE. Search and download functionalities are using the official Maven repository.

momento.lettuce.MomentoRedisReactiveCommands Maven / Gradle / Ivy

The newest version!
package momento.lettuce;

import io.lettuce.core.ExpireArgs;
import io.lettuce.core.api.reactive.RedisReactiveCommands;
import java.time.Duration;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * The subset of {@link RedisReactiveCommands} that are also implemented by {@link
 * MomentoRedisReactiveCommands}.
 *
 * @param  Key type.
 * @param  Value type.
 */
public interface MomentoRedisReactiveCommands {
  Mono get(K k);

  Mono lpush(K k, V... vs);

  Flux lrange(K k, long l, long l1);

  Mono ltrim(K k, long l, long l1);

  Mono set(K k, V v);

  Mono pexpire(K k, long l);

  Mono pexpire(K k, long l, ExpireArgs expireArgs);

  Mono pexpire(K k, Duration duration);

  Mono pexpire(K k, Duration duration, ExpireArgs expireArgs);

  Mono unlink(K... ks);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy