workaround for carmine's problem added
This commit is contained in:
@@ -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
|
|
||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user