Example usage for org.springframework.data.redis.connection.jedis JedisConverters stringListToByteList

List of usage examples for org.springframework.data.redis.connection.jedis JedisConverters stringListToByteList

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection.jedis JedisConverters stringListToByteList.

Prototype

public static ListConverter<String, byte[]> stringListToByteList() 

Source Link

Usage

From source file:org.springframework.data.redis.connection.jedis.JedisClusterConnection.java

@Override
public List<byte[]> clusterGetKeysInSlot(int slot, Integer count) {

    RedisClusterNode node = clusterGetNodeForSlot(slot);

    clusterCommandExecutor// ww  w .  j  a v a2s  .  c o m
            .executeCommandOnSingleNode((JedisClusterCommandCallback<List<byte[]>>) client -> JedisConverters
                    .stringListToByteList().convert(client.clusterGetKeysInSlot(slot,
                            count != null ? count.intValue() : Integer.MAX_VALUE)),
                    node);
    return null;
}