Package redis

Examples of redis.Command


  public Promise<IntegerReply> sunionstore(Object destination0, Object[] key1) {
    if (version < SUNIONSTORE_VERSION) return new Promise<>(new RedisException("Server does not support SUNIONSTORE"));
    List<Object> list = new ArrayList<>();
    list.add(destination0);
    Collections.addAll(list, key1);
    return execute(IntegerReply.class, new Command(SUNIONSTORE_BYTES, list.toArray(new Object[list.size()])));
  }
View Full Code Here


  }

  // Varargs version to simplify commands with optional or multiple arguments
  public Promise<IntegerReply> sunionstore_(Object... arguments) {
    if (version < SUNIONSTORE_VERSION) return new Promise<>(new RedisException("Server does not support SUNIONSTORE"));
    return execute(IntegerReply.class, new Command(SUNIONSTORE_BYTES, arguments));
  }
View Full Code Here

   * @param args
   * @return IntegerReply
   */
  public Promise<IntegerReply> zadd(Object[] args) {
    if (version < ZADD_VERSION) return new Promise<>(new RedisException("Server does not support ZADD"));
    return execute(IntegerReply.class, new Command(ZADD_BYTES, args));
  }
View Full Code Here

   * @param key0
   * @return IntegerReply
   */
  public Promise<IntegerReply> zcard(Object key0) {
    if (version < ZCARD_VERSION) return new Promise<>(new RedisException("Server does not support ZCARD"));
    return execute(IntegerReply.class, new Command(ZCARD_BYTES, key0));
  }
View Full Code Here

   * @param max2
   * @return IntegerReply
   */
  public Promise<IntegerReply> zcount(Object key0, Object min1, Object max2) {
    if (version < ZCOUNT_VERSION) return new Promise<>(new RedisException("Server does not support ZCOUNT"));
    return execute(IntegerReply.class, new Command(ZCOUNT_BYTES, key0, min1, max2));
  }
View Full Code Here

   * @param member2
   * @return BulkReply
   */
  public Promise<BulkReply> zincrby(Object key0, Object increment1, Object member2) {
    if (version < ZINCRBY_VERSION) return new Promise<>(new RedisException("Server does not support ZINCRBY"));
    return execute(BulkReply.class, new Command(ZINCRBY_BYTES, key0, increment1, member2));
  }
View Full Code Here

    if (version < ZINTERSTORE_VERSION) return new Promise<>(new RedisException("Server does not support ZINTERSTORE"));
    List<Object> list = new ArrayList<>();
    list.add(destination0);
    list.add(numkeys1);
    Collections.addAll(list, key2);
    return execute(IntegerReply.class, new Command(ZINTERSTORE_BYTES, list.toArray(new Object[list.size()])));
  }
View Full Code Here

  }

  // Varargs version to simplify commands with optional or multiple arguments
  public Promise<IntegerReply> zinterstore_(Object... arguments) {
    if (version < ZINTERSTORE_VERSION) return new Promise<>(new RedisException("Server does not support ZINTERSTORE"));
    return execute(IntegerReply.class, new Command(ZINTERSTORE_BYTES, arguments));
  }
View Full Code Here

    List<Object> list = new ArrayList<>();
    list.add(key0);
    list.add(start1);
    list.add(stop2);
    if (withscores3 != null) list.add(withscores3);
    return execute(MultiBulkReply.class, new Command(ZRANGE_BYTES, list.toArray(new Object[list.size()])));
  }
View Full Code Here

  }

  // Varargs version to simplify commands with optional or multiple arguments
  public Promise<MultiBulkReply> zrange_(Object... arguments) {
    if (version < ZRANGE_VERSION) return new Promise<>(new RedisException("Server does not support ZRANGE"));
    return execute(MultiBulkReply.class, new Command(ZRANGE_BYTES, arguments));
  }
View Full Code Here

TOP

Related Classes of redis.Command

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.