taoensso / carmine

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

Get / Set Data Type inconsistent #287

Closed zerg000000 closed 8 months ago

zerg000000 commented 8 months 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 8 months ago

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

Would recommend checking out the Getting started guide.