aboutsummaryrefslogtreecommitdiff
path: root/pkg/commands/command-registry.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/command-registry.go')
-rw-r--r--pkg/commands/command-registry.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/commands/command-registry.go b/pkg/commands/command-registry.go
index 7db4923..6e34ff7 100644
--- a/pkg/commands/command-registry.go
+++ b/pkg/commands/command-registry.go
@@ -75,6 +75,16 @@ var Registry = map[string]CommandDef{
ExtractKeys: SingleKey,
Execute: Rename,
},
+ "RPUSH": {
+ MinArgs: 3,
+ ExtractKeys: SingleKey,
+ Execute: Rpush,
+ },
+ "LPUSH": {
+ MinArgs: 3,
+ ExtractKeys: SingleKey,
+ Execute: Lpush,
+ },
"RPOP": {
MinArgs: 2,
ExtractKeys: SingleKey,