On Feb 17, 2013, at 8:49 PM, Leonardo Borges <leonardoborges...@gmail.com> wrote:
> My theory behind why this works is that when I reload the cache > namespace it recompiles it - and at that point, the new var binding is > available. > > Is this the case? More importantly, is this how I should be doing this? Yes. If you load a namespace that uses a macro, the macro is expanded at load time. Probably what you should do is redefine whatever function `with-redis` expands into. (If it's a private, use the var: (cache/set "key" "value" => "OK") (provided (#'redis/private-redis-function …) => … (redis/set …) => …) -------- Looking for employment as a Clojure programmer Latest book: /Functional Programming for the Object-Oriented Programmer/ https://leanpub.com/fp-oo -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.