com.lambdaworks.redis.output.KeyListOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redisson Show documentation
Show all versions of redisson Show documentation
Redis Java client with features of In-Memory Data Grid
// Copyright (C) 2011 - 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;
import java.util.ArrayList;
import java.util.List;
/**
* {@link List} of keys output.
*
* @param Key type.
*
* @author Will Glozer
*/
public class KeyListOutput extends CommandOutput> {
public KeyListOutput(RedisCodec codec) {
super(codec, new ArrayList());
}
@Override
public void set(ByteBuffer bytes) {
output.add(codec.decodeKey(bytes));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy