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

io.lettuce.core.output.ValueScanOutput Maven / Gradle / Ivy

Go to download

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.ValueScanCursor;
import io.lettuce.core.codec.RedisCodec;

/**
 * {@link io.lettuce.core.ValueScanCursor} for scan cursor output.
 *
 * @param  Key type.
 * @param  Value type.
 * @author Mark Paluch
 */
public class ValueScanOutput extends ScanOutput> {

    public ValueScanOutput(RedisCodec codec) {
        super(codec, new ValueScanCursor());
    }

    @Override
    protected void setOutput(ByteBuffer bytes) {
        output.getValues().add(bytes == null ? null : codec.decodeValue(bytes));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy