diff options
| author | alex <[email protected]> | 2026-07-11 12:58:05 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-11 12:58:05 +0200 |
| commit | 5f9649fe9000e4e499cffb7a1f034d8ab4bd247c (patch) | |
| tree | 91af7e472f7fa0a9e41ec88307f99aad807c6721 /pkg/commands/command-registry.go | |
| parent | 1470772a00faad4a5b4130e0fe47513e5618e31d (diff) | |
| download | redis-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.go | 10 |
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 |
