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

com.redislabs.riot.batch.redis.writer.map.FtSugaddPayload Maven / Gradle / Ivy

package com.redislabs.riot.batch.redis.writer.map;

import java.util.Map;

import com.redislabs.riot.batch.redis.RedisCommands;

import lombok.Setter;
import lombok.experimental.Accessors;

@Accessors(fluent = true)
public class FtSugaddPayload extends FtSugadd {

	@Setter
	private String payload;

	@Override
	protected Object write(RedisCommands commands, R redis, String key, Map item, String string,
			double score, boolean increment) {
		return commands.sugadd(redis, key, string, score, increment, convert(item.remove(payload), String.class));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy