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.

Home Page:http://clojurememcached.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Record can be set but return nil in get

kafaichoi opened this issue · comments

commented

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.

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