clojurewerkz / spyglass

A Clojure Memcached client (also: Couchbase, Kestrel). Built on top of SpyMemcached, supports ASCII and binary protocols, strives to be 100% feature complete.
http://clojurememcached.info
67 stars 17 forks source link

Record can be set but return nil in get #30

Closed kafaichoi closed 6 years ago

kafaichoi commented 6 years ago

Great Library! Thx every contributor.

Is setting record not supported yet?

(defn -main
  [& args]
  (let [tmc (c/text-connection "127.0.0.1:11211")
          amy (Person. "amy" "chou" "HK")
          _   (c/set tmc "a-key" 300 amy)
         val (c/get tmc "a-key")]
    val))
; val will be nil.
michaelklishin commented 6 years ago

You should be able to serialise anything but some things will require a custom transcoder.