Carmine is a a Clojure Redis client & message queue.
Questions tagged [carmine]
8 questions
10
votes
2 answers
How should carmine's wcar macro be used?
I'm confused by how calls with carmine should be done. I found the wcar macro described in carmine's docs:
(defmacro wcar [& body] `(car/with-conn pool spec-server1 ~@body))
Do I really have to call wcar every time I want to talk to redis in…

Oin
- 6,951
- 2
- 31
- 55
2
votes
1 answer
Carmine connection error during tests
I've a luminus project with some simple compojure-api routes.
I've added carmine to communicate with a redis server, using the wcar* macro (defined in services.clj) to make calls to it, and everything works fine.
Now I'm trying to add some tests,…

lifeisfoo
- 15,478
- 6
- 74
- 115
1
vote
2 answers
Use taoensso.carmine to check existance of multiple keys
I am using taoensso.carmine redis client and want to achieve the following: given sequence s, get all its elements that aren't exist in redis. (I mean for which redis's EXISTS command return false)
At first I thought to do the following:
(wcar conn
…

Boffin
- 570
- 2
- 7
- 21
1
vote
1 answer
can't keep carmine mq worker open
I'm trying to implement a carmine worker in a constantly running process.
When launching the following app with lein run myclass.foo, it just starts the worker and stops it right away.
(def my-worker
(car-mq/worker queue-server "my-queue"
…

patchrail
- 2,007
- 1
- 23
- 33
1
vote
1 answer
Integrate Spring-based Java application and Clojure library
We have a Spring 4.0-based web application running in Tomcat 8 (alternatively we have a start-up script for Undertow). Spring MVC is handling requests. I am looking for a way to defer some of request handling code to Clojure library, with minimal…

siphiuel
- 3,480
- 4
- 31
- 34
1
vote
1 answer
Strange behavior in carmine (clojure-redis client)
Consider this snippet in carmine
(wcar* (car/set "counter" 1) ;; expect to be number counter=1
(let [id (car/get "counter")] ;; expect to have id=1
(println id))) ;; [nil [[SET counter 1] [GET…

mishadoff
- 10,719
- 2
- 33
- 55
0
votes
1 answer
clojure carmine redis connection errors
I've been plagued for a week with connection errors whenever I run my code outside of my local machine.
The connection errors are because carmine is connecting to localhost, no matter what I do. Here is the full output from a repl session, from my…

0atman
- 3,298
- 4
- 30
- 46
0
votes
1 answer
Compiling in Clojure - Redis/Carmine
I have problem with the Carmine uberjar compile (lein with-profile embed uberjar). Maybe very easy the answer, but I didn't get any help from other forums. The lein ring server-headless 8080 run correctly. If I run this command lein with-profile…

RRR
- 103
- 1
- 7