diff options
| author | alex <[email protected]> | 2026-07-11 13:18:25 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-11 13:18:25 +0200 |
| commit | 56bf3fc1b36e7301727e9d8d94a6239a88c4e208 (patch) | |
| tree | e08f45dc1eefbfc435cc6984970e75facdcb55e9 /pkg/commands/command-registry.go | |
| parent | 5f9649fe9000e4e499cffb7a1f034d8ab4bd247c (diff) | |
| download | redis-clone-56bf3fc1b36e7301727e9d8d94a6239a88c4e208.tar.xz redis-clone-56bf3fc1b36e7301727e9d8d94a6239a88c4e208.zip | |
refactroed LPUSH and RPUSH for 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 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, |
