
com.redis.spring.batch.writer.Rpush Maven / Gradle / Ivy
package com.redis.spring.batch.writer;
import java.util.function.Function;
import io.lettuce.core.RedisFuture;
import io.lettuce.core.api.async.BaseRedisAsyncCommands;
import io.lettuce.core.api.async.RedisListAsyncCommands;
public class Rpush extends AbstractKeyValueOperation {
public Rpush(Function keyFunction, Function valueFunction) {
super(keyFunction, valueFunction);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
protected RedisFuture execute(BaseRedisAsyncCommands commands, T item, K key, V value) {
return ((RedisListAsyncCommands) commands).rpush(key, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy