Package redis

Examples of redis.Command


   * @param value1
   * @return IntegerReply
   */
  public IntegerReply append(Object key0, Object value1) throws RedisException {
    if (version < APPEND_VERSION) throw new RedisException("Server does not support APPEND");
    return (IntegerReply) execute(APPEND, new Command(APPEND_BYTES, key0, value1));
  }
View Full Code Here


   * @param end2
   * @return IntegerReply
   */
  public IntegerReply bitcount(Object key0, Object start1, Object end2) throws RedisException {
    if (version < BITCOUNT_VERSION) throw new RedisException("Server does not support BITCOUNT");
    return (IntegerReply) execute(BITCOUNT, new Command(BITCOUNT_BYTES, key0, start1, end2));
  }
View Full Code Here

  }

  // Varargs version to simplify commands with optional or multiple arguments
  public IntegerReply bitcount_(Object... arguments) throws RedisException {
    if (version < BITCOUNT_VERSION) throw new RedisException("Server does not support BITCOUNT");
    return (IntegerReply) execute(BITCOUNT, new Command(BITCOUNT_BYTES, arguments));
  }
View Full Code Here

    if (version < BITOP_VERSION) throw new RedisException("Server does not support BITOP");
    List list = new ArrayList();
    list.add(operation0);
    list.add(destkey1);
    Collections.addAll(list, key2);
    return (IntegerReply) execute(BITOP, new Command(BITOP_BYTES, list.toArray(new Object[list.size()])));
  }
View Full Code Here

  }

  // Varargs version to simplify commands with optional or multiple arguments
  public IntegerReply bitop_(Object... arguments) throws RedisException {
    if (version < BITOP_VERSION) throw new RedisException("Server does not support BITOP");
    return (IntegerReply) execute(BITOP, new Command(BITOP_BYTES, arguments));
  }
View Full Code Here

   * @param key0
   * @return IntegerReply
   */
  public IntegerReply decr(Object key0) throws RedisException {
    if (version < DECR_VERSION) throw new RedisException("Server does not support DECR");
    return (IntegerReply) execute(DECR, new Command(DECR_BYTES, key0));
  }
View Full Code Here

   * @param decrement1
   * @return IntegerReply
   */
  public IntegerReply decrby(Object key0, Object decrement1) throws RedisException {
    if (version < DECRBY_VERSION) throw new RedisException("Server does not support DECRBY");
    return (IntegerReply) execute(DECRBY, new Command(DECRBY_BYTES, key0, decrement1));
  }
View Full Code Here

   * @param key0
   * @return BulkReply
   */
  public BulkReply get(Object key0) throws RedisException {
    if (version < GET_VERSION) throw new RedisException("Server does not support GET");
    return (BulkReply) execute(GET, new Command(GET_BYTES, key0));
  }
View Full Code Here

   * @param offset1
   * @return IntegerReply
   */
  public IntegerReply getbit(Object key0, Object offset1) throws RedisException {
    if (version < GETBIT_VERSION) throw new RedisException("Server does not support GETBIT");
    return (IntegerReply) execute(GETBIT, new Command(GETBIT_BYTES, key0, offset1));
  }
View Full Code Here

   * @param end2
   * @return BulkReply
   */
  public BulkReply getrange(Object key0, Object start1, Object end2) throws RedisException {
    if (version < GETRANGE_VERSION) throw new RedisException("Server does not support GETRANGE");
    return (BulkReply) execute(GETRANGE, new Command(GETRANGE_BYTES, key0, start1, end2));
  }
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.