diff options
Diffstat (limited to 'src/help.h')
-rw-r--r-- | src/help.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/help.h b/src/help.h index edd15a3c9..b8b1efb95 100644 --- a/src/help.h +++ b/src/help.h @@ -459,12 +459,12 @@ struct commandHelp { 0, "1.2.0" }, { "FLUSHALL", - "[ASYNC]", + "[ASYNC|SYNC]", "Remove all keys from all databases", 9, "1.0.0" }, { "FLUSHDB", - "[ASYNC]", + "[ASYNC|SYNC]", "Remove all keys from the current database", 9, "1.0.0" }, @@ -518,6 +518,16 @@ struct commandHelp { "Returns the bit value at offset in the string value stored at key", 1, "2.2.0" }, + { "GETDEL", + "key", + "Get the value of a key and delete the key", + 1, + "6.2.0" }, + { "GETEX", + "key [EX seconds|PX milliseconds|EXAT timestamp|PXAT milliseconds-timestamp|PERSIST]", + "Get the value of a key and optionally set its expiration", + 1, + "6.2.0" }, { "GETRANGE", "key start end", "Get a substring of the string stored at a key", @@ -583,6 +593,11 @@ struct commandHelp { "Set multiple hash fields to multiple values", 5, "2.0.0" }, + { "HRANDFIELD", + "key [count [WITHVALUES]]", + "Get one or multiple random fields from a hash", + 5, + "6.2.0" }, { "HSCAN", "key cursor [MATCH pattern] [COUNT count]", "Incrementally iterate hash fields and associated values", @@ -989,7 +1004,7 @@ struct commandHelp { 10, "2.6.0" }, { "SCRIPT FLUSH", - "-", + "[ASYNC|SYNC]", "Remove all the scripts from the script cache.", 10, "2.6.0" }, @@ -1019,7 +1034,7 @@ struct commandHelp { 8, "1.0.0" }, { "SET", - "key value [EX seconds|PX milliseconds|KEEPTTL] [NX|XX] [GET]", + "key value [EX seconds|PX milliseconds|EXAT timestamp|PXAT milliseconds-timestamp|KEEPTTL] [NX|XX] [GET]", "Set the string value of a key", 1, "1.0.0" }, @@ -1323,6 +1338,11 @@ struct commandHelp { "Remove and return members with the lowest scores in a sorted set", 4, "5.0.0" }, + { "ZRANDMEMBER", + "key [count [WITHSCORES]]", + "Get one or multiple random elements from a sorted set", + 4, + "6.2.0" }, { "ZRANGE", "key min max [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]", "Return a range of members in a sorted set", |