use of org.apache.rocketmq.connect.redis.parser.PSetExParser in project rocketmq-externals by apache.
the class ParserTest method testPSetExParser.
@Test
public void testPSetExParser() {
String command = "PSETEX key 1000 value";
KVEntry builder = new PSetExParser().parse(parseCommand(command));
Assert.assertEquals("PSETEX", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
Assert.assertEquals("value", builder.getValue());
Assert.assertTrue(1000L == builder.getParam(Options.REDIS_PX));
}
Aggregations