redis指令大全
詳細
APPEND key value key
AUTH password
BGREWRITEAOF
BGSAVE
BLPOP key [key ...] timeout , , ,
BRPOP key [key ...] timeout , , ,
BRPOPLPUSH source destination timeout , , ; ,
CLIENT KILL ip:portKill the connection of a client
CLIENT LISTGet the list of client connections
CONFIG GET parameter
CONFIG SET parameter value
CONFIG RESETSTAT info
DBSIZE keys
DEBUG OBJECT key key debug
DEBUG SEGFAULT
DECR key 1
DECRBY key decrement
DEL key [key ...] key
DISCARD MULTI
ECHO message
EVAL script numkeys key [key ...] arg [arg ...] LUA
EVALSHA sha1 numkeys key [key ...] arg [arg ...] LUA
EXEC MULTI
EXISTS key key
EXPIRE key seconds key
EXPIREAT key timestamp UNIX
FLUSHALL
FLUSHDB
GET key key
GETBIT key offset 。
GETRANGE key start end
GETSET key value key value,
HDEL key field [field ...]
HEXISTS key field
HGET key field
HGETALL key
HINCRBY key field increment
HKEYS key hash
HLEN key hash
HMGET key field [field ...] hash
HMSET key field value [field value ...] hash
HSET key field value hash
HSETNX key field value hash ,
HVALS key hash
INCR key 1
INCRBY key increment
INFO
KEYS pattern
LASTSAVE
LINDEX key index ,
LINSERT key BEFORE|AFTER pivot value
LLEN key (List)
LPOP key
LPUSH key value [value ...]
LPUSHX key value ,
LRANGE key start stop
LREM key count value
LSET key index value
LTRIM key start stop
MGET key [key ...] key
MONITOR
MOVE key db key
MSET key value [key value ...] key value
MSETNX key value [key value ...] key value, key
MULTI
OBJECT subcommand [arguments [arguments ...]]
PERSIST key key
PINGPing
PSUBSCRIBE pattern [pattern ...]
PUBLISH channel message
PUNSUBSCRIBE [pattern [pattern ...]]
QUIT ,
RANDOMKEY key
RENAME key newkey key
RENAMENX key newkey key, key key
RPOP key
RPOPLPUSH source destination ,
RPUSH key value [value ...]
RPUSHX key value ,
SADD key member [member ...] (set)
SAVE
SCARD key
SCRIPT EXISTS script [script ...]Check existence of scripts in the script cache.
SCRIPT FLUSHRemove all the scripts from the script cache.
SCRIPT KILLKill the script currently in execution.
SCRIPT LOAD scriptLoad the specified Lua script into the script cache.
SDIFF key [key ...]
SDIFFSTORE destination key [key ...] ,
SELECT index
SET key value key value
SETBIT key offset value
SETEX key seconds value
SETNX key value ,
SETRANGE key offset value
SHUTDOWN
SINTER key [key ...]
SINTERSTORE destination key [key ...] ,
SISMEMBER key member
SLAVEOF host port
SLOWLOG subcommand [argument]
SMEMBERS key key
SMOVE source destination member key
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
、 、
SPOP key
SRANDMEMBER key key
SREM key member [member ...] key
STRLEN key key
SUBSCRIBE channel [channel ...]
SUNION key [key ...]
SUNIONSTORE destination key [key ...] ,
SYNC
TIME
TTL key key
TYPE key key
UNSUBSCRIBE [channel [channel ...]]
UNWATCH
WATCH key [key ...] key MULTI/EXEC
ZADD key score member [score] [member] set , ,
ZCARD key
ZCOUNT key min max
ZINCRBY key increment member
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] ,
ZRANGE key start stop [WITHSCORES] ,
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count] ,
ZRANK key member
ZREM key member [member ...]
ZREMRANGEBYRANK key start stop
ZREMRANGEBYSCORE key min max
ZREVRANGE key start stop [WITHSCORES] , ,
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count] , ,
ZREVRANK key member ,
ZSCORE key member
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]