summaryrefslogtreecommitdiff
path: root/src/wasp-db.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-09-16 01:34:52 -0400
committerLLLL Colonq <llll@colonq>2025-09-16 01:34:59 -0400
commit510608fdbc43947391d82c703370814aa57a454e (patch)
tree57c35f47ed5b2ce0c7eaa2a2553b0e39131475d5 /src/wasp-db.el
parentfe903c535211bdbeeb703e06db0da3f7c8c19b4b (diff)
Update
Diffstat (limited to 'src/wasp-db.el')
-rw-r--r--src/wasp-db.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasp-db.el b/src/wasp-db.el
index 4b327f5b..fda53b85 100644
--- a/src/wasp-db.el
+++ b/src/wasp-db.el
@@ -154,6 +154,10 @@ Afterward call K."
(w/db-cmd `("HSET" ,key ,hkey ,val ,@vals) (lambda (_) nil)))
;; (w/db-hset-then key hkey val (lambda (_) nil) vals))
+(defun w/db-hmset (key &rest vals)
+ "Set many keys in hash KEY to VALS in Redis."
+ (w/db-cmd `("HMSET" ,key ,@vals) (lambda (_) nil)))
+
(defun w/db-hget (key hkey k)
"Get HKEY in hash KEY from Redis and pass the corresponding value to K."
(w/db-cmd `("HGET" ,key ,hkey) k))