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

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

Introduction

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

Prototype

@Nullable
    public static String toString(@Nullable byte[] source) 

Source Link

Usage

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

@Override
public Integer clusterGetSlotForKey(byte[] key) {

    return clusterCommandExecutor
            .executeCommandOnArbitraryNode((JedisClusterCommandCallback<Integer>) client -> client
                    .clusterKeySlot(JedisConverters.toString(key)).intValue())
            .getValue();//from  ww w.  j  av  a  2 s .  com
}