com.lambdaworks.redis.protocol
Enum CommandType

java.lang.Object
  extended by java.lang.Enum<CommandType>
      extended by com.lambdaworks.redis.protocol.CommandType
All Implemented Interfaces:
Serializable, Comparable<CommandType>

public enum CommandType
extends Enum<CommandType>

Redis commands.

Author:
Will Glozer

Enum Constant Summary
APPEND
           
AUTH
           
BGREWRITEAOF
           
BGSAVE
           
BITCOUNT
           
BITOP
           
BLPOP
           
BRPOP
           
BRPOPLPUSH
           
CLIENT
           
CONFIG
           
DBSIZE
           
DEBUG
           
DECR
           
DECRBY
           
DEL
           
DISCARD
           
DUMP
           
ECHO
           
EVAL
           
EVALSHA
           
EXEC
           
EXISTS
           
EXPIRE
           
EXPIREAT
           
FLUSHALL
           
FLUSHDB
           
GET
           
GETBIT
           
GETRANGE
           
GETSET
           
HDEL
           
HEXISTS
           
HGET
           
HGETALL
           
HINCRBY
           
HINCRBYFLOAT
           
HKEYS
           
HLEN
           
HMGET
           
HMSET
           
HSET
           
HSETNX
           
HVALS
           
INCR
           
INCRBY
           
INCRBYFLOAT
           
INFO
           
KEYS
           
LASTSAVE
           
LINDEX
           
LINSERT
           
LLEN
           
LPOP
           
LPUSH
           
LPUSHX
           
LRANGE
           
LREM
           
LSET
           
LTRIM
           
MGET
           
MIGRATE
           
MONITOR
           
MOVE
           
MSET
           
MSETNX
           
MULTI
           
OBJECT
           
PERSIST
           
PEXPIRE
           
PEXPIREAT
           
PING
           
PSUBSCRIBE
           
PTTL
           
PUBLISH
           
PUNSUBSCRIBE
           
QUIT
           
RANDOMKEY
           
RENAME
           
RENAMENX
           
RESTORE
           
RPOP
           
RPOPLPUSH
           
RPUSH
           
RPUSHX
           
SADD
           
SAVE
           
SCARD
           
SCRIPT
           
SDIFF
           
SDIFFSTORE
           
SELECT
           
SET
           
SETBIT
           
SETEX
           
SETNX
           
SETRANGE
           
SHUTDOWN
           
SINTER
           
SINTERSTORE
           
SISMEMBER
           
SLAVEOF
           
SLOWLOG
           
SMEMBERS
           
SMOVE
           
SORT
           
SPOP
           
SRANDMEMBER
           
SREM
           
STRLEN
           
SUBSCRIBE
           
SUNION
           
SUNIONSTORE
           
SYNC
           
TTL
           
TYPE
           
UNSUBSCRIBE
           
UNWATCH
           
WATCH
           
ZADD
           
ZCARD
           
ZCOUNT
           
ZINCRBY
           
ZINTERSTORE
           
ZRANGE
           
ZRANGEBYSCORE
           
ZRANK
           
ZREM
           
ZREMRANGEBYRANK
           
ZREMRANGEBYSCORE
           
ZREVRANGE
           
ZREVRANGEBYSCORE
           
ZREVRANK
           
ZSCORE
           
ZUNIONSTORE
           
 
Field Summary
 byte[] bytes
           
 
Method Summary
static CommandType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTH

public static final CommandType AUTH

ECHO

public static final CommandType ECHO

PING

public static final CommandType PING

QUIT

public static final CommandType QUIT

SELECT

public static final CommandType SELECT

BGREWRITEAOF

public static final CommandType BGREWRITEAOF

BGSAVE

public static final CommandType BGSAVE

CLIENT

public static final CommandType CLIENT

CONFIG

public static final CommandType CONFIG

DBSIZE

public static final CommandType DBSIZE

DEBUG

public static final CommandType DEBUG

FLUSHALL

public static final CommandType FLUSHALL

FLUSHDB

public static final CommandType FLUSHDB

INFO

public static final CommandType INFO

LASTSAVE

public static final CommandType LASTSAVE

MONITOR

public static final CommandType MONITOR

SAVE

public static final CommandType SAVE

SHUTDOWN

public static final CommandType SHUTDOWN

SLAVEOF

public static final CommandType SLAVEOF

SLOWLOG

public static final CommandType SLOWLOG

SYNC

public static final CommandType SYNC

DEL

public static final CommandType DEL

DUMP

public static final CommandType DUMP

EXISTS

public static final CommandType EXISTS

EXPIRE

public static final CommandType EXPIRE

EXPIREAT

public static final CommandType EXPIREAT

KEYS

public static final CommandType KEYS

MIGRATE

public static final CommandType MIGRATE

MOVE

public static final CommandType MOVE

OBJECT

public static final CommandType OBJECT

PERSIST

public static final CommandType PERSIST

PEXPIRE

public static final CommandType PEXPIRE

PEXPIREAT

public static final CommandType PEXPIREAT

PTTL

public static final CommandType PTTL

RANDOMKEY

public static final CommandType RANDOMKEY

RENAME

public static final CommandType RENAME

RENAMENX

public static final CommandType RENAMENX

RESTORE

public static final CommandType RESTORE

TTL

public static final CommandType TTL

TYPE

public static final CommandType TYPE

APPEND

public static final CommandType APPEND

GET

public static final CommandType GET

GETRANGE

public static final CommandType GETRANGE

GETSET

public static final CommandType GETSET

MGET

public static final CommandType MGET

MSET

public static final CommandType MSET

MSETNX

public static final CommandType MSETNX

SET

public static final CommandType SET

SETEX

public static final CommandType SETEX

SETNX

public static final CommandType SETNX

SETRANGE

public static final CommandType SETRANGE

STRLEN

public static final CommandType STRLEN

DECR

public static final CommandType DECR

DECRBY

public static final CommandType DECRBY

INCR

public static final CommandType INCR

INCRBY

public static final CommandType INCRBY

INCRBYFLOAT

public static final CommandType INCRBYFLOAT

BLPOP

public static final CommandType BLPOP

BRPOP

public static final CommandType BRPOP

BRPOPLPUSH

public static final CommandType BRPOPLPUSH

LINDEX

public static final CommandType LINDEX

LINSERT

public static final CommandType LINSERT

LLEN

public static final CommandType LLEN

LPOP

public static final CommandType LPOP

LPUSH

public static final CommandType LPUSH

LPUSHX

public static final CommandType LPUSHX

LRANGE

public static final CommandType LRANGE

LREM

public static final CommandType LREM

LSET

public static final CommandType LSET

LTRIM

public static final CommandType LTRIM

RPOP

public static final CommandType RPOP

RPOPLPUSH

public static final CommandType RPOPLPUSH

RPUSH

public static final CommandType RPUSH

RPUSHX

public static final CommandType RPUSHX

SORT

public static final CommandType SORT

HDEL

public static final CommandType HDEL

HEXISTS

public static final CommandType HEXISTS

HGET

public static final CommandType HGET

HGETALL

public static final CommandType HGETALL

HINCRBY

public static final CommandType HINCRBY

HINCRBYFLOAT

public static final CommandType HINCRBYFLOAT

HKEYS

public static final CommandType HKEYS

HLEN

public static final CommandType HLEN

HMGET

public static final CommandType HMGET

HMSET

public static final CommandType HMSET

HSET

public static final CommandType HSET

HSETNX

public static final CommandType HSETNX

HVALS

public static final CommandType HVALS

DISCARD

public static final CommandType DISCARD

EXEC

public static final CommandType EXEC

MULTI

public static final CommandType MULTI

UNWATCH

public static final CommandType UNWATCH

WATCH

public static final CommandType WATCH

PSUBSCRIBE

public static final CommandType PSUBSCRIBE

PUBLISH

public static final CommandType PUBLISH

PUNSUBSCRIBE

public static final CommandType PUNSUBSCRIBE

SUBSCRIBE

public static final CommandType SUBSCRIBE

UNSUBSCRIBE

public static final CommandType UNSUBSCRIBE

SADD

public static final CommandType SADD

SCARD

public static final CommandType SCARD

SDIFF

public static final CommandType SDIFF

SDIFFSTORE

public static final CommandType SDIFFSTORE

SINTER

public static final CommandType SINTER

SINTERSTORE

public static final CommandType SINTERSTORE

SISMEMBER

public static final CommandType SISMEMBER

SMEMBERS

public static final CommandType SMEMBERS

SMOVE

public static final CommandType SMOVE

SPOP

public static final CommandType SPOP

SRANDMEMBER

public static final CommandType SRANDMEMBER

SREM

public static final CommandType SREM

SUNION

public static final CommandType SUNION

SUNIONSTORE

public static final CommandType SUNIONSTORE

ZADD

public static final CommandType ZADD

ZCARD

public static final CommandType ZCARD

ZCOUNT

public static final CommandType ZCOUNT

ZINCRBY

public static final CommandType ZINCRBY

ZINTERSTORE

public static final CommandType ZINTERSTORE

ZRANGE

public static final CommandType ZRANGE

ZRANGEBYSCORE

public static final CommandType ZRANGEBYSCORE

ZRANK

public static final CommandType ZRANK

ZREM

public static final CommandType ZREM

ZREMRANGEBYRANK

public static final CommandType ZREMRANGEBYRANK

ZREMRANGEBYSCORE

public static final CommandType ZREMRANGEBYSCORE

ZREVRANGE

public static final CommandType ZREVRANGE

ZREVRANGEBYSCORE

public static final CommandType ZREVRANGEBYSCORE

ZREVRANK

public static final CommandType ZREVRANK

ZSCORE

public static final CommandType ZSCORE

ZUNIONSTORE

public static final CommandType ZUNIONSTORE

EVAL

public static final CommandType EVAL

EVALSHA

public static final CommandType EVALSHA

SCRIPT

public static final CommandType SCRIPT

BITCOUNT

public static final CommandType BITCOUNT

BITOP

public static final CommandType BITOP

GETBIT

public static final CommandType GETBIT

SETBIT

public static final CommandType SETBIT
Field Detail

bytes

public byte[] bytes
Method Detail

values

public static CommandType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CommandType c : CommandType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CommandType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.