workaround for carmine's problem added

This commit is contained in:
Christian Mueller
2014-01-19 21:25:40 +01:00
parent a4aeb34c49
commit c162c1f601
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
max-title-length = 40 max-title-length = 40
prod-domain = http://notehub.org prod-domain = http://notehub.org
dev-domain = http://localhost:8080 dev-domain = http://localhost:8080
db-url = http://localhost:6379
+1 -1
View File
@@ -4,7 +4,7 @@
[noir.util.crypt :only [encrypt]]) [noir.util.crypt :only [encrypt]])
(:require [taoensso.carmine :as car :refer (wcar)])) (:require [taoensso.carmine :as car :refer (wcar)]))
(def conn {:pool {} :spec {:uri (get-setting :db-url)}}) (def conn {:pool {} :spec (read-string (get-setting :db))})
(defmacro redis [cmd & body] (defmacro redis [cmd & body]
`(car/wcar conn `(car/wcar conn
(~(symbol "car" (name cmd)) (~(symbol "car" (name cmd))