示例#1
0
 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);
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }