com.redislabs.riot.redis.InfoCommand Maven / Gradle / Ivy
The newest version!
package com.redislabs.riot.redis;
import io.lettuce.core.api.sync.BaseRedisCommands;
import io.lettuce.core.api.sync.RedisServerCommands;
import picocli.CommandLine.Command;
@Command(name = "info", description = "Display INFO command output")
public class InfoCommand extends AbstractRedisCommand {
@Override
@SuppressWarnings("unchecked")
protected void execute(BaseRedisCommands commands) {
System.out.println(((RedisServerCommands) commands).info());
}
}