RedisClusterClient client = RedisClusterClient.create(RedisURI.create(hostname, 6380));StatefulRedisClusterConnection<String, String> conn = client.connect();conn.setReadFrom(ReadFrom.SLAVE);
RedisAdvancedClusterCommands<String, String> sync = conn.sync();
sync.get("test");sync.eval("return '1';", ScriptOutputType.VALUE, new String[]{"test"});AsyncCommand [type=EVAL, output=ValueOutput [output=null, error='MOVED 6918 xx.xx.xx.xx:6381'], commandType=com.lambdaworks.redis.protocol.Command]