aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authoralex <[email protected]>2026-07-06 19:21:44 +0200
committeralex <[email protected]>2026-07-06 19:21:44 +0200
commit291a6c9044723fcbcce18a3cd12509d5fdac4702 (patch)
tree6c21f5e00a53667010e3eb556fdd882fac4e52ab /main.go
parent316b443addb7ec55e27f571ef489f2c19afb3a82 (diff)
downloadredis-clone-291a6c9044723fcbcce18a3cd12509d5fdac4702.tar.xz
redis-clone-291a6c9044723fcbcce18a3cd12509d5fdac4702.zip
added hash support
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index ade1b76..a20db6a 100644
--- a/main.go
+++ b/main.go
@@ -29,6 +29,9 @@ var commandRegistry = map[string]handlerFunc{
"LPOP": handleLpop,
"RPOP": handleRpop,
"EXPIRE": handleExpire,
+ "HSET": handleHset,
+ "HGET": handleHget,
+ "HGETALL": handleHgetall,
}
func main() {