com.redis.spring.batch.writer.operation.LpushAll Maven / Gradle / Ivy
The newest version!
package com.redis.spring.batch.writer.operation;
import java.util.Collection;
import java.util.function.Function;
import io.lettuce.core.RedisFuture;
import io.lettuce.core.api.async.RedisListAsyncCommands;
public class LpushAll extends AbstractPushAll {
public LpushAll(Function keyFunction, Function> valuesFunction) {
super(keyFunction, valuesFunction);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
protected RedisFuture doPush(RedisListAsyncCommands commands, K key, V[] values) {
return commands.lpush(key, values);
}
}