momento.lettuce.MomentoRedisReactiveCommands Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of momento-lettuce Show documentation
Show all versions of momento-lettuce Show documentation
Momento-backed implementation of the Lettuce Redis client
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);
}