All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy