
io.lettuce.core.output.KeyScanOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.output;
import java.nio.ByteBuffer;
import io.lettuce.core.KeyScanCursor;
import io.lettuce.core.codec.RedisCodec;
/**
* {@link io.lettuce.core.KeyScanCursor} for scan cursor output.
*
* @param Key type.
* @param Value type.
* @author Mark Paluch
*/
public class KeyScanOutput extends ScanOutput> {
public KeyScanOutput(RedisCodec codec) {
super(codec, new KeyScanCursor());
}
@Override
protected void setOutput(ByteBuffer bytes) {
output.getKeys().add(bytes == null ? null : codec.decodeKey(bytes));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy