From 5f9649fe9000e4e499cffb7a1f034d8ab4bd247c Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 11 Jul 2026 12:58:05 +0200 Subject: refactored more commands to work with command registry --- pkg/commands/command-registry.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkg/commands/command-registry.go') 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 -- cgit v1.2.3