
com.redis.spring.batch.writer.LpushAll Maven / Gradle / Ivy
package com.redis.spring.batch.writer;
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 PushAll {
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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy