class RedisItemWriter<K, T> extends KeyValueItemWriter<K, T> {

	private RedisTemplate<K, T> redisTemplate;

	@Override
	protected void writeKeyValue(K key, T value) {<FILL_FUNCTION_BODY>}

	@Override
	protected void init() {
		Assert.notNull(this.redisTemplate, "RedisTemplate must not be null");
	}

	/**
	 * Set the {@link RedisTemplate} to use.
	 * @param redisTemplate the template to use
	 */
	public void setRedisTemplate(RedisTemplate<K, T> redisTemplate) {
		this.redisTemplate = redisTemplate;
	}

}

		if (this.delete) {
			this.redisTemplate.delete(key);
		}
		else {
			this.redisTemplate.opsForValue().set(key, value);
		}
	
<methods>public non-sealed void <init>() ,public void afterPropertiesSet() throws java.lang.Exception,public void setDelete(boolean) ,public void setItemKeyMapper(Converter<T,K>) ,public void write(Chunk<? extends T>) throws java.lang.Exception<variables>protected boolean delete,protected Converter<T,K> itemKeyMapper