taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.16k stars 132 forks source link

Get / Set Data Type inconsistent #287

Closed zerg000000 closed 1 year ago

zerg000000 commented 1 year ago

Is it the expected behavior?

(car/wcar {} (car/set "a" 1))
(car/wcar {} (car/get "a"))
;; => "1"
;; set integer, but we get string back

(car/wcar {} (car/set "b" {:a 1}))
(car/wcar {} (car/get "b"))
;; => {:a 1}
;; set map, we get map as expected
ptaoussanis commented 1 year ago

@zerg000000 Hi Albert! Yes, that may seem a bit confusing but is expected behaviour.

Would recommend checking out the Getting started guide.