/** * @param jedis the client instance. * @return {@literal true} if the connection has entered {@literal MULTI} state. */ static boolean isInMulti(Jedis jedis) { return retrieveClient(jedis).isInMulti(); }
/** * Send a Redis command and retrieve the {@link Client} for response retrieval. * * @param command the command. * @param args must not be {@literal null}, may be empty. * @param jedis must not be {@literal null}. * @return the {@link Client} instance used to send the command. */ static Client sendCommand(String command, byte[][] args, Jedis jedis) { Client client = retrieveClient(jedis); sendCommand(client, command, args); return client; }
/** * @param jedis the client instance. * @return {@literal true} if the connection has entered {@literal MULTI} state. */ static boolean isInMulti(Jedis jedis) { return retrieveClient(jedis).isInMulti(); }
/** * @param jedis the client instance. * @return {@literal true} if the connection has entered {@literal MULTI} state. */ static boolean isInMulti(Jedis jedis) { return retrieveClient(jedis).isInMulti(); }
/** * Send a Redis command and retrieve the {@link Client} for response retrieval. * * @param command the command. * @param args must not be {@literal null}, may be empty. * @param jedis must not be {@literal null}. * @return the {@link Client} instance used to send the command. */ static Client sendCommand(String command, byte[][] args, Jedis jedis) { Client client = retrieveClient(jedis); sendCommand(client, command, args); return client; }
/** * Send a Redis command and retrieve the {@link Client} for response retrieval. * * @param command the command. * @param args must not be {@literal null}, may be empty. * @param jedis must not be {@literal null}. * @return the {@link Client} instance used to send the command. */ static Client sendCommand(String command, byte[][] args, Jedis jedis) { Client client = retrieveClient(jedis); sendCommand(client, command, args); return client; }