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