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

com.redis.spring.batch.writer.Lpush 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 Lpush extends AbstractKeyValueOperation {

	public Lpush(Function keyFunction, Function valueFunction) {
		super(keyFunction, valueFunction);
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	@Override
	protected RedisFuture execute(BaseRedisAsyncCommands commands, T item, K key, V value) {
		return ((RedisListAsyncCommands) commands).lpush(key, value);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy