Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 52 additions & 16 deletions crates/ember-cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,18 @@ pub static COMMANDS: &[CommandInfo] = &[
group: "generic",
summary: "rename a key",
},
CommandInfo {
name: "SORT",
args: "key [ASC|DESC] [ALPHA] [LIMIT offset count] [STORE destination]",
group: "generic",
summary: "sort the elements in a list, set, or sorted set",
},
CommandInfo {
name: "SCAN",
args: "cursor [MATCH pattern] [COUNT count]",
group: "generic",
summary: "incrementally iterate the keys space",
},
CommandInfo {
name: "SORT",
args: "key [ASC|DESC] [ALPHA] [LIMIT offset count] [STORE destination]",
group: "generic",
summary: "sort the elements in a list, set, or sorted set",
},
CommandInfo {
name: "TOUCH",
args: "key [key ...]",
Expand Down Expand Up @@ -237,6 +237,18 @@ pub static COMMANDS: &[CommandInfo] = &[
group: "list",
summary: "remove and return the last element, or block until one is available",
},
CommandInfo {
name: "LINDEX",
args: "key index",
group: "list",
summary: "get an element from a list by its index",
},
CommandInfo {
name: "LINSERT",
args: "key BEFORE|AFTER pivot element",
group: "list",
summary: "insert an element before or after another element in a list",
},
CommandInfo {
name: "LLEN",
args: "key",
Expand All @@ -249,6 +261,12 @@ pub static COMMANDS: &[CommandInfo] = &[
group: "list",
summary: "remove and return the first element of a list",
},
CommandInfo {
name: "LPOS",
args: "key element [RANK rank] [COUNT count] [MAXLEN maxlen]",
group: "list",
summary: "return the index of matching elements in a list",
},
CommandInfo {
name: "LPUSH",
args: "key value [value ...]",
Expand All @@ -261,6 +279,24 @@ pub static COMMANDS: &[CommandInfo] = &[
group: "list",
summary: "get a range of elements from a list",
},
CommandInfo {
name: "LREM",
args: "key count element",
group: "list",
summary: "remove elements from a list",
},
CommandInfo {
name: "LSET",
args: "key index element",
group: "list",
summary: "set the value of an element in a list by its index",
},
CommandInfo {
name: "LTRIM",
args: "key start stop",
group: "list",
summary: "trim a list to the specified range",
},
CommandInfo {
name: "RPOP",
args: "key",
Expand Down Expand Up @@ -551,10 +587,10 @@ pub static COMMANDS: &[CommandInfo] = &[
},
// transactions
CommandInfo {
name: "MULTI",
name: "DISCARD",
args: "",
group: "transactions",
summary: "mark the start of a transaction block",
summary: "discard all commands issued after MULTI",
},
CommandInfo {
name: "EXEC",
Expand All @@ -563,23 +599,23 @@ pub static COMMANDS: &[CommandInfo] = &[
summary: "execute all commands issued after MULTI",
},
CommandInfo {
name: "DISCARD",
name: "MULTI",
args: "",
group: "transactions",
summary: "discard all commands issued after MULTI",
},
CommandInfo {
name: "WATCH",
args: "key [key ...]",
group: "transactions",
summary: "watch keys for optimistic locking before MULTI/EXEC",
summary: "mark the start of a transaction block",
},
CommandInfo {
name: "UNWATCH",
args: "",
group: "transactions",
summary: "forget about all watched keys",
},
CommandInfo {
name: "WATCH",
args: "key [key ...]",
group: "transactions",
summary: "watch keys for optimistic locking before MULTI/EXEC",
},
];

/// Look up a command by name (case-insensitive).
Expand Down
Loading
Loading