api/java/src/main/java/com/navercorp/redis/cluster/spring/RedisClusterConnection.java
@Override
    public DataType type(byte[] key) {
        try {
            if (isPipelined()) {
                pipeline(new JedisResult(pipeline.type(key), JedisConverters.stringToDataType()));
                return null;
            }

            return JedisConverters.toDataType(client.type(key));
        } catch (Exception ex) {
            throw convertException(ex);
        }
    }
@Override
    public DataType type(byte[] key) {
        try {
            if (isPipelined()) {
                pipeline(new JedisResult(pipeline.type(key), JedisConverters.stringToDataType()));
                return null;
            }

            return JedisConverters.toDataType(client.type(key));
        } catch (Exception ex) {
            throw convertException(ex);
        }
    }
/*
@see org.springframework.data.redis.connection.RedisKeyCommands#type(byte[])