lein try com.taoensso/carmine ;; try is from
https://github.com/rkneufeld/lein-try
(def server-connection {:pool {:max-active 8}
:spec {:host "localhost"
:port 6379
:timeout 4000}})
(require '[taoensso.carmine :as car :refer (wcar)])
(defmacro wcar* [& body] `(car/wcar server-connection ~@body))
(wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yyyyyy"}))
(wcar* (car/hgetall "yyy”))
["pass" "yyyyyy" "yyy" "yyy”]
(wcar* (car/hgetall* "yyy”))
{"pass" "yyyyyy", "yyy" "yyy”}
But what I want (or expect) is what I set before:
{:yyy "yyy", :pass "yyyyyy"}
Who can help me? Thank you very much!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.