標籤: Lua 到 Redis 的轉換表。Lua number -> Redis integer reply (the number is converted into an integer)Lua string -> Redis bulk replyLua table (array) -> Redis multi bulk reply (truncated to the first nil inside the Lua array if any)Lua table
標籤:BGREWRITEAOFAsynchronously rewrite the append-only file BGSAVE Asynchronously save the dataset to disk CLIENT KILL [ip:port] [ID client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]Kill the connection of a
標籤:ZADD key score member [score member ...]Add one or more members to a sorted set, or update its score if it already exists127.0.0.1:6379> ZADD foo 1 one(integer) 1127.0.0.1:6379> ZADD foo 2 two(integer) 1127.0.0.1:6379> ZADD foo 3
標籤:DISCARDDiscard all commands issued after MULTIMore: http://redis.io/commands/discard, http://www.redis.cn/commands/discard.html EXECExecute all commands issued after
標籤: I/O每個作業系統,它的一個組成部分。和I/O業務品質,在一定程度上也影響了系統的效率。今天,我在瞭解了Redis中間I/O的,相同的,Redis在他自己的系統中。也封裝了一個I/O層。簡稱RIO。得先看看RIO中有什麼東西嘍:struct _rio { /* Backend functions. * Since this functions do not tolerate short writes or reads
標籤:HDEL key field [field ...]Delete one or more hash fields127.0.0.1:6379> HSET book.1 title helloworld(integer) 0127.0.0.1:6379> HEXISTS book.1 title(integer) 1127.0.0.1:6379> HDEL book.1 title(integer) 1127.0.0.1:6379> HEXISTS book.1
標籤:BLPOP key [key ...] timeoutRemove and get the first element in a list, or block until one is available More: http://redis.io/commands/blpop, http://www.redis.cn/commands/blpop.html BRPOP key [key ...] timeoutRemove and get the