I think you should do "(binding [*print-dup* true] (pr-str value).."
instead of  just (pr-str value) in the encode-value function. (line 20
in redis_memo.clj)

On Jan 4, 2:55 pm, Steve Purcell <st...@sanityinc.com> wrote:
> Read the code I posted in this thread and put up on github after you 
> expressed interest.
>
> That's part of what it does, using the reader/printer representation.
>
> Alternatives would include standard Java binary serialisation or 3rd party 
> libraries (Hessian/Burlap?).
>
> -Steve
>
> On 4 Jan 2010, at 12:15, Gabi wrote:
>
> > What if I wanted to use Redis just persist binary (serialized) clojure
> > objects ?
> > What's the easiest (and fastest) way to serialize/de-serialize vectors
> > or lists in Clojure ? (so the can stored as blobs in Redis)
>
> > On Jan 4, 12:59 pm, Gabi <bugspy...@gmail.com> wrote:
> >> Maybe, though I would avoid distributed transactions as much as
> >> possible. They are complex and slow creatures.
>
> >> On Jan 4, 12:51 pm, Shantanu Kumar <kumar.shant...@gmail.com> wrote:
>
> >>> On Jan 2, 5:12 am, Gabi <bugspy...@gmail.com> wrote:
>
> >>>> I am interested in the idea: Completely stateless set of Clojure nodes
> >>>> (on many machines), operating on a central state stored in some
> >>>> datastore.
> >>>> If transactions could be managed somehow, I think it would be very
> >>>> compelling model for many applications.
>
> >>> Do you mean distributed transactions?
>
> > --
> > 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 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

Reply via email to