use of org.apache.rocketmq.connect.redis.parser.ExpireAtParser in project rocketmq-externals by apache.
the class ParserTest method testExpireAtParser.
@Test
public void testExpireAtParser() {
String command = "expireat 500";
KVEntry builder = new ExpireAtParser().parse(parseCommand(command));
Assert.assertEquals("expireat", builder.getCommand());
Assert.assertEquals("500", builder.getKey());
Assert.assertTrue(500 == builder.getParam(Options.REDIS_EX_TIMESTAMP));
}
Aggregations