
com.lambdaworks.redis.output.KeyOutput Maven / Gradle / Ivy
// Copyright (C) 2013 - Will Glozer. All rights reserved.
package com.lambdaworks.redis.output;
import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;
import java.nio.ByteBuffer;
/**
* Key output.
*
* @param Key type.
*
* @author Will Glozer
*/
public class KeyOutput extends CommandOutput {
public KeyOutput(RedisCodec codec) {
super(codec, null);
}
@Override
public void set(ByteBuffer bytes) {
output = (bytes == null) ? null : codec.decodeKey(bytes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy