public void zinterstore(final byte[] dstkey, final byte[]... sets) { final byte[][] params = new byte[sets.length + 2][]; params[0] = dstkey; params[1] = Protocol.toByteArray(sets.length); System.arraycopy(sets, 0, params, 2, sets.length); sendCommand(ZINTERSTORE, params); }
public void zunionstore(final byte[] dstkey, final byte[]... sets) { final byte[][] params = new byte[sets.length + 2][]; params[0] = dstkey; params[1] = toByteArray(sets.length); System.arraycopy(sets, 0, params, 2, sets.length); sendCommand(ZUNIONSTORE, params); }
public void sdiffstore(final byte[] dstkey, final byte[]... keys) { byte[][] params = new byte[keys.length + 1][]; params[0] = dstkey; System.arraycopy(keys, 0, params, 1, keys.length); sendCommand(SDIFFSTORE, params); }
public void hmget(final byte[] key, final byte[]... fields) { final byte[][] params = new byte[fields.length + 1][]; params[0] = key; System.arraycopy(fields, 0, params, 1, fields.length); sendCommand(HMGET, params); }