From cc96590cd42797431f33947ebd556bd45d7aaa7c Mon Sep 17 00:00:00 2001 From: holys Date: Wed, 30 Jul 2014 12:18:38 +0800 Subject: [PATCH] rename; add readOnly field --- commands.json => doc/commands.json | 708 ++++++++++++++++------------- 1 file changed, 396 insertions(+), 312 deletions(-) rename commands.json => doc/commands.json (53%) diff --git a/commands.json b/doc/commands.json similarity index 53% rename from commands.json rename to doc/commands.json index d060151..52cce2a 100644 --- a/commands.json +++ b/doc/commands.json @@ -1,334 +1,418 @@ { - "DECR": { - "arguments": "key decrement", - "group": "KV" - }, - "DECRBY": { - "arguments": "key [key ...]", - "group": "KV" - }, - "DEL": { - "arguments": "key", - "group": "KV" - }, - "EXISTS": { - "arguments": "key seconds", - "group": "KV" - }, - "EXPIRE": { - "arguments": "key timestamp", - "group": "KV" - }, - "EXPIREAT": { - "arguments": "key", - "group": "KV" - }, - "GET": { - "arguments": " key value", - "group": "KV" - }, - "GETSET": { - "arguments": "key", - "group": "KV" - }, - "INCR": { - "arguments": "key increment", - "group": "KV" - }, - "INCRBY": { - "arguments": "key [key ...]", - "group": "KV" - }, - "MGET": { - "arguments": "key value [key value ...]", - "group": "KV" - }, - "MSET": { - "arguments": "key value", - "group": "KV" - }, - "SET": { - "arguments": "key value", - "group": "KV" - }, - "SETNX": { - "arguments": "key", - "group": "KV" - }, - "TTL": { - "arguments": "key", - "group": "KV" - }, - "PERSIST": { - "arguments": "key field [field ...]", - "group": "Hash" - }, - "HDEL": { - "arguments": "key field", - "group": "Hash" - }, - "HEXISTS": { - "arguments": "key field", - "group": "Hash" - }, - "HGET": { - "arguments": "key", - "group": "Hash" - }, - "HGETALL": { - "arguments": "key field increment", - "group": "Hash" - }, - "HINCRBY": { - "arguments": "key", - "group": "Hash" - }, - "HKEYS": { - "arguments": "key", - "group": "Hash" - }, - "HLEN": { - "arguments": "key field [field ...]", - "group": "Hash" - }, - "HMGET": { - "arguments": "key field value [field value ...]", - "group": "Hash" - }, - "HMSET": { - "arguments": "key field value", - "group": "Hash" - }, - "HSET": { - "arguments": "key", - "group": "Hash" - }, - "HVALS": { - "arguments": "key", - "group": "Hash" - }, - "HCLEAR": { - "arguments": "key [key ...]", - "group": "Hash" - }, - "HMCLEAR": { - "arguments": "key seconds", - "group": "Hash" - }, - "HEXPIRE": { - "arguments": "key timestamp", - "group": "Hash" - }, - "HEXPIREAT": { - "arguments": "key", - "group": "Hash" - }, - "HTTL": { - "arguments": "key", - "group": "Hash" - }, - "HPERSIST": { - "arguments": "key index", - "group": "List" - }, - "LINDEX": { - "arguments": "key", - "group": "List" - }, - "LLEN": { - "arguments": "key", - "group": "List" - }, - "LPOP": { - "arguments": "key value [value ...]", - "group": "List" - }, - "LPUSH": { - "arguments": "key start stop", - "group": "List" - }, - "LRANGE": { - "arguments": "key", - "group": "List" - }, - "RPOP": { - "arguments": "key value [value ...]", - "group": "List" - }, - "RPUSH": { - "arguments": "key", - "group": "List" - }, - "LCLEAR": { - "arguments": "key [key ...]", - "group": "List" - }, - "LMCLEAR": { - "arguments": "key seconds", - "group": "List" - }, - "LEXPIRE": { - "arguments": "key timestamp", - "group": "List" - }, - "LEXPIREAT": { - "arguments": "key", - "group": "List" - }, - "LTTL": { - "arguments": "key", - "group": "List" - }, - "LPERSIST": { - "arguments": "key score member [score member ...]", - "group": "ZSet" - }, - "ZADD": { - "arguments": "key", - "group": "ZSet" - }, - "ZCARD": { - "arguments": "key min max", - "group": "ZSet" - }, - "ZCOUNT": { - "arguments": "key increment member", - "group": "ZSet" - }, - "ZINCRBY": { - "arguments": "key start stop [WITHSCORES]", - "group": "ZSet" - }, - "ZRANGE": { - "arguments": "key min max [WITHSCORES] [LIMIT offset count]", - "group": "ZSet" - }, - "ZRANGEBYSCORE": { - "arguments": "key member", - "group": "ZSet" - }, - "ZRANK": { - "arguments": "key member [member ...]", - "group": "ZSet" - }, - "ZREM": { - "arguments": "key start stop", - "group": "ZSet" - }, - "ZREMRANGEBYRANK": { - "arguments": "key min max", - "group": "ZSet" - }, - "ZREMRANGEBYSCORE": { - "arguments": "key start stop [WITHSCORES]", - "group": "ZSet" - }, - "ZREVRANGE": { - "arguments": "key max min [WITHSCORES][LIMIT offset count]", - "group": "ZSet" - }, - "ZREVRANGEBYSCORE": { - "arguments": "key member", - "group": "ZSet" - }, - "ZREVRANK": { - "arguments": "key member", - "group": "ZSet" - }, - "ZSCORE": { - "arguments": "key", - "group": "ZSet" - }, - "ZCLEAR": { - "arguments": "key [key ...]", - "group": "ZSet" - }, - "ZMCLEAR": { - "arguments": "key seconds", - "group": "ZSet" - }, - "ZEXPIRE": { - "arguments": "key timestamp", - "group": "ZSet" - }, - "ZEXPIREAT": { - "arguments": "key", - "group": "ZSet" - }, - "ZTTL": { - "arguments": "key", - "group": "ZSet" - }, - "ZPERSIST": { - "arguments": "key", - "group": "ZSet" + "BCOUNT": { + "arguments": "key [start end]", + "group": "Bitmap", + "read only": true }, "BDELETE": { "arguments": "key", - "group": "Bitmap" - }, - "BGET": { - "arguments": "key offset", - "group": "Bitmap" - }, - "BGETBIT": { - "arguments": "key offset value", - "group": "Bitmap" - }, - "BSETBIT": { - "arguments": "key offset value [offset value ...]", - "group": "Bitmap" - }, - "BMSETBIT": { - "arguments": "operation destkey key [key ...]", - "group": "Bitmap" - }, - "BOPT": { - "arguments": "key [start end]", - "group": "Bitmap" - }, - "BCOUNT": { - "arguments": "key seconds", - "group": "Bitmap" + "group": "ZSet", + "readOnly": false }, "BEXPIRE": { - "arguments": "key timestamp", - "group": "Bitmap" + "arguments": "key seconds", + "group": "Bitmap", + "readOnly": false }, "BEXPIREAT": { + "arguments": "key timestamp", + "group": "Bitmap", + "readOnly": false, + }, + "BGET": { "arguments": "key", - "group": "Bitmap" + "group": "Bitmap", + "readOnly": true + }, + "BGETBIT": { + "arguments": "key offset", + "group": "Bitmap", + "readOnly": true + }, + "BMSETBIT": { + "arguments": "key offset value [offset value ...]", + "group": "Bitmap", + "readOnly": false + }, + "BOPT": { + "arguments": "operation destkey key [key ...]", + "group": "Bitmap", + "readOnly": false + }, + "BPERSIST": { + "arguments": "key", + "group": "Bitmap", + "readOnly": false + }, + "BSETBIT": { + "arguments": "key offset value", + "group": "Bitmap", + "readOnly": false }, "BTTL": { "arguments": "key", - "group": "Bitmap" + "group": "Bitmap", + "readOnly": true }, - "BPERSIST": { - "arguments": "host port", - "group": "Replication" + "DECR": { + "arguments": "key", + "group": "KV", + "readOnly": false }, - "SLAVEOF": { - "arguments": "-", - "group": "Replication" + "DECRBY": { + "arguments": "key decrement", + "group": "KV", + "readOnly": false }, - "FULLSYNC": { - "arguments": "index offset", - "group": "Replication" - }, - "SYNC": { - "arguments": "-", - "group": "Server" - }, - "PING": { - "arguments": "message", - "group": "Server" + "DEL": { + "arguments": "key [key ...]", + "group": "KV", + "readOnly": false }, "ECHO": { - "arguments": "index", - "group": "Server" + "arguments": "message", + "group": "Server", + "readOnly": true + }, + "EXISTS": { + "arguments": "key", + "group": "KV", + "readOnly": true + }, + "EXPIRE": { + "arguments": "key seconds", + "group": "KV", + "readOnly": false + }, + "EXPIREAT": { + "arguments": "key timestamp", + "group": "KV", + "readOnly": false + }, + "FULLSYNC": { + "arguments": "-", + "group": "Replication", + "readOnly": false + + }, + "GET": { + "arguments": "key", + "group": "KV", + "readOnly": true + }, + "GETSET": { + "arguments": " key value", + "group": "KV", + "readOnly": false + }, + "HCLEAR": { + "arguments": "key", + "group": "Hash", + "readOnly": false + }, + "HDEL": { + "arguments": "key field [field ...]", + "group": "Hash", + "readOnly": false + }, + "HEXISTS": { + "arguments": "key field", + "group": "Hash", + "readOnly": true + }, + "HEXPIRE": { + "arguments": "key seconds", + "group": "Hash", + "readOnly": false + }, + "HEXPIREAT": { + "arguments": "key timestamp", + "group": "Hash", + "readOnly": false + }, + "HGET": { + "arguments": "key field", + "group": "Hash", + "readOnly": true + }, + "HGETALL": { + "arguments": "key", + "group": "Hash", + "readOnly": true + }, + "HINCRBY": { + "arguments": "key field increment", + "group": "Hash", + "readOnly": false + }, + "HKEYS": { + "arguments": "key", + "group": "Hash", + "readOnly": true + }, + "HLEN": { + "arguments": "key", + "group": "Hash", + "readOnly": true + }, + "HMCLEAR": { + "arguments": "key [key ...]", + "group": "Hash", + "readOnly": false + }, + "HMGET": { + "arguments": "key field [field ...]", + "group": "Hash", + "readOnly": true + }, + "HMSET": { + "arguments": "key field value [field value ...]", + "group": "Hash", + "readOnly": false + }, + "HPERSIST": { + "arguments": "key", + "group": "Hash", + "readOnly": false + }, + "HSET": { + "arguments": "key field value", + "group": "Hash", + "readOnly": false + }, + "HTTL": { + "arguments": "key", + "group": "Hash", + "readOnly": true + }, + "HVALS": { + "arguments": "key", + "group": "Hash", + "readOnly": true + }, + "INCR": { + "arguments": "key", + "group": "KV", + "readOnly": false + }, + "INCRBY": { + "arguments": "key increment", + "group": "KV", + "readOnly": false + }, + "LCLEAR": { + "arguments": "key", + "group": "List", + "readOnly": false + }, + "LEXPIRE": { + "arguments": "key seconds", + "group": "List", + "readOnly": false + }, + "LEXPIREAT": { + "arguments": "key timestamp", + "group": "List", + "readOnly": false + }, + "LINDEX": { + "arguments": "key index", + "group": "List", + "readOnly": true + }, + "LLEN": { + "arguments": "key", + "group": "List", + "readOnly": true + }, + "LMCLEAR": { + "arguments": "key [key ...]", + "group": "List", + "readOnly": false + }, + "LPERSIST": { + "arguments": "key", + "group": "List", + "readOnly": false + }, + "LPOP": { + "arguments": "key", + "group": "List", + "readOnly": false + }, + "LPUSH": { + "arguments": "key value [value ...]", + "group": "List", + "readOnly": false + }, + "LRANGE": { + "arguments": "key start stop", + "group": "List", + "readOnly": true + }, + "LTTL": { + "arguments": "key", + "group": "List", + "readOnly": true + }, + "MGET": { + "arguments": "key [key ...]", + "group": "KV", + "readOnly": true + }, + "MSET": { + "arguments": "key value [key value ...]", + "group": "KV", + "readOnly": false + }, + "PERSIST": { + "arguments": "key", + "group": "KV", + "readOnly": false + }, + "PING": { + "arguments": "-", + "group": "Server", + "readOnly": true + }, + "RPOP": { + "arguments": "key", + "group": "List", + "readOnly": false + }, + "RPUSH": { + "arguments": "key value [value ...]", + "group": "List", + "readOnly": false }, "SELECT": { "arguments": "index", - "group": "Server" + "group": "Server", + "readOnly": false + }, + "SET": { + "arguments": "key value", + "group": "KV", + "readOnly": false + }, + "SETNX": { + "arguments": "key value", + "group": "KV", + "readOnly": false + }, + "SLAVEOF": { + "arguments": "host port", + "group": "Replication", + "readOnly": false + }, + "SYNC": { + "arguments": "index offset", + "group": "Replication", + "readOnly": false + }, + "TTL": { + "arguments": "key", + "group": "KV", + "readOnly": true + }, + "ZADD": { + "arguments": "key score member [score member ...]", + "group": "ZSet", + "readOnly": false + }, + "ZCARD": { + "arguments": "key", + "group": "ZSet", + "readOnly": true + }, + "ZCLEAR": { + "arguments": "key", + "group": "ZSet", + "readOnly": false + }, + "ZCOUNT": { + "arguments": "key min max", + "group": "ZSet", + "readOnly": true + }, + "ZEXPIRE": { + "arguments": "key seconds", + "group": "ZSet", + "readOnly": false + }, + "ZEXPIREAT": { + "arguments": "key timestamp", + "group": "ZSet", + "readOnly": false + }, + "ZINCRBY": { + "arguments": "key increment member", + "group": "ZSet", + "readOnly": false + }, + "ZMCLEAR": { + "arguments": "key [key ...]", + "group": "ZSet", + "readOnly": false + }, + "ZPERSIST": { + "arguments": "key", + "group": "ZSet", + "readOnly": false + }, + "ZRANGE": { + "arguments": "key start stop [WITHSCORES]", + "group": "ZSet", + "readOnly": false + }, + "ZRANGEBYSCORE": { + "arguments": "key min max [WITHSCORES] [LIMIT offset count]", + "group": "ZSet", + "readOnly": true + }, + "ZRANK": { + "arguments": "key member", + "group": "ZSet", + "readOnly": true + }, + "ZREM": { + "arguments": "key member [member ...]", + "group": "ZSet", + "readOnly": false + }, + "ZREMRANGEBYRANK": { + "arguments": "key start stop", + "group": "ZSet", + "readOnly": false + }, + "ZREMRANGEBYSCORE": { + "arguments": "key min max", + "group": "ZSet", + "readOnly": false + }, + "ZREVRANGE": { + "arguments": "key start stop [WITHSCORES]", + "group": "ZSet", + "readOnly": true + }, + "ZREVRANGEBYSCORE": { + "arguments": "key max min [WITHSCORES][LIMIT offset count]", + "group": "ZSet", + "readOnly": true + }, + "ZREVRANK": { + "arguments": "key member", + "group": "ZSet", + "readOnly": true + }, + "ZSCORE": { + "arguments": "key member", + "group": "ZSet", + "readOnly": true + }, + "ZTTL": { + "arguments": "key", + "group": "ZSet", + "readOnly": true } } \ No newline at end of file