aboutsummaryrefslogtreecommitdiff
path: root/pkg/commands/command-registry.go
diff options
context:
space:
mode:
authoralex <[email protected]>2026-07-11 12:58:05 +0200
committeralex <[email protected]>2026-07-11 12:58:05 +0200
commit5f9649fe9000e4e499cffb7a1f034d8ab4bd247c (patch)
tree91af7e472f7fa0a9e41ec88307f99aad807c6721 /pkg/commands/command-registry.go
parent1470772a00faad4a5b4130e0fe47513e5618e31d (diff)
downloadredis-clone-5f9649fe9000e4e499cffb7a1f034d8ab4bd247c.tar.xz
redis-clone-5f9649fe9000e4e499cffb7a1f034d8ab4bd247c.zip
refactored more commands to work with command registry
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 eaefc65..7db4923 100644
--- a/pkg/commands/command-registry.go
+++ b/pkg/commands/command-registry.go
@@ -75,4 +75,14 @@ var Registry = map[string]CommandDef{
ExtractKeys: SingleKey,
Execute: Rename,
},
+ "RPOP": {
+ MinArgs: 2,
+ ExtractKeys: SingleKey,
+ Execute: Rpop,
+ },
+ "LPOP": {
+ MinArgs: 2,
+ ExtractKeys: SingleKey,
+ Execute: Lpop,
+ },
} \ No newline at end of file