after use your solution, I looked up the source code of carmine and found that:

(wcar* (car/hgetall* "yyy" true))

can get what I want.

Thank you!  

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Sunday, February 9, 2014 at 9:34 AM, tao wrote:

> Thank you very much!
>  
> --  
> tao
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>  
>  
> On Sunday, February 9, 2014 at 1:06 AM, mynomoto wrote:
>  
> > You can use:
> >  
> > (into {} (map (fn [[k v]] [(keyword k) v]) {"pass" "yyyyyy", "yyy" "yyy"}))
> >  
> > On Saturday, February 8, 2014 2:34:44 PM UTC-2, Tao Zhou wrote:
> > > 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 clojure@googlegroups.com 
> > (mailto:clojure@googlegroups.com)
> > Note that posts from new members are moderated - please be patient with 
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com 
> > (mailto:clojure+unsubscr...@googlegroups.com)
> > 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 clojure+unsubscr...@googlegroups.com 
> > (mailto:clojure+unsubscr...@googlegroups.com).
> > For more options, visit https://groups.google.com/groups/opt_out.
>  

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to