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

com.redis.spring.batch.writer.operation.Lpush Maven / Gradle / Ivy

The newest version!
package com.redis.spring.batch.writer.operation;

import java.util.function.Function;

import io.lettuce.core.RedisFuture;
import io.lettuce.core.api.async.RedisListAsyncCommands;

public class Lpush extends AbstractPush {

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy