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