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

com.redis.spring.batch.reader.MemKeyValue Maven / Gradle / Ivy

package com.redis.spring.batch.reader;

import com.redis.spring.batch.common.KeyValue;

public class MemKeyValue extends KeyValue {

	private long mem;

	public MemKeyValue() {
	}

	public MemKeyValue(KeyValue other) {
		super(other);
	}

	public MemKeyValue(MemKeyValue other) {
		super(other);
		this.mem = other.mem;
	}

	/**
	 * 
	 * @return Number of bytes that this key and its value require to be stored in
	 *         Redis RAM. 0 means no memory usage information is available.
	 */
	public long getMem() {
		return mem;
	}

	public void setMem(long bytes) {
		this.mem = bytes;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy