diff options
Diffstat (limited to 'pkg/commands/command-registry.go')
| -rw-r--r-- | pkg/commands/command-registry.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/commands/command-registry.go b/pkg/commands/command-registry.go index 0193da1..eaefc65 100644 --- a/pkg/commands/command-registry.go +++ b/pkg/commands/command-registry.go @@ -55,4 +55,24 @@ var Registry = map[string]CommandDef{ ExtractKeys: AllSubsequentKeys, Execute: Del, }, + "EXISTS": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Exists, + }, + "INCR": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Incr, + }, + "DECR": { + MinArgs: 2, + ExtractKeys: SingleKey, + Execute: Decr, + }, + "RENAME": { + MinArgs: 3, + ExtractKeys: SingleKey, + Execute: Rename, + }, }
\ No newline at end of file |
