Hi Tim I am using redis-clojure client: https://github.com/tavisrudd/redis-clojure
Below is the complete code listing. The thaw invocation gives me the error: java.lang.String cannot be cast to [B - (class java.lang.ClassCastException) ------ code ------------ (ns my-app (:require [redis.core :as redis] [deep-freeze.core :as df]) (:use [clojure.tools.logging :only (debug info)])) (defn thaw [k] (redis/with-server {:host "dev-1" :port 6379 :db 0} (let [j (redis/hget k k)] (if (nil? j) (do (info (str "Not found in redis cache " k)) nil) (do (info (str "Thawed from redis cache " k)) (df/thaw-from-array j)))))) (defn freeze [k results] (redis/with-server {:host "dev-1" :port 6379 :db 0} (redis/hmset k k (df/freeze-to-array results)))) On Jan 5, 3:14 pm, Timothy Baldridge <tbaldri...@gmail.com> wrote: > Can we get a complete code listing? Also what client are you using? It > looks as if yourredisclient is returning a string, and we're > expecting a byte array > > Timothy > > > > > > > > > I looked at deep-freeze but did not quite understand how to use it. > > I used the following to freeze my Clojure complex data structure - > > results (map of list of maps) and persist toredis: -- 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