@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = JedisConverters.toBitfieldCommandArguments(subCommands); try { return connection.execute("BITFIELD", key, Arrays.asList(args), Connection::getIntegerMultiBulkReply); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = ByteUtils.mergeArrays(key, JedisConverters.toBitfieldCommandArguments(subCommands)); return connection.execute("BITFIELD", args, Client::getIntegerMultiBulkReply, JedisClientUtils::getResponse); }
@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = JedisConverters.toBitfieldCommandArguments(subCommands); try { return connection.execute("BITFIELD", key, Arrays.asList(args), Connection::getIntegerMultiBulkReply); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = JedisConverters.toBitfieldCommandArguments(subCommands); try { return connection.execute("BITFIELD", key, Arrays.asList(args), Connection::getIntegerMultiBulkReply); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = ByteUtils.mergeArrays(key, JedisConverters.toBitfieldCommandArguments(subCommands)); return connection.execute("BITFIELD", args, Client::getIntegerMultiBulkReply, JedisClientUtils::getResponse); }
@Override public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(subCommands, "Command must not be null!"); byte[][] args = ByteUtils.mergeArrays(key, JedisConverters.toBitfieldCommandArguments(subCommands)); return connection.execute("BITFIELD", args, Client::getIntegerMultiBulkReply, JedisClientUtils::getResponse); }