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

com.redis.spring.batch.writer.Sadd 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.RedisSetAsyncCommands;

public class Sadd extends AbstractKeyValueOperation {

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy