Skip to content

Commit

Permalink
first deploy in clojars
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <[email protected]>
  • Loading branch information
avelino committed May 26, 2024
1 parent 872650d commit 516a141
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ RQ (Redis Queue) is a simple Clojure package for queueing jobs and processing th

```clojure
(ns rq.example
(:require [clj-rq.rq :as rq]
[clj-rq.queue :as queue]
[clj-rq.pubsub :as pubsub]))
(:require [com.moclojer.rq :as rq]
[com.moclojer.rq.queue :as queue]
[com.moclojer.rq.pubsub :as pubsub]))

(def *redis-pool* (rq/client "redis://localhost:6379/0"))

Expand All @@ -24,3 +24,15 @@ RQ (Redis Queue) is a simple Clojure package for queueing jobs and processing th
(pubsub/publish *redis-pool* "name-subs" "value set")
(pubsub/subscribe *redis-pool* #(prn :chan %1 :msg %2) ["name-subs"])
```

## installation

We distribute the library via [Clojars](https://clojars.org/com.moclojer/rq).

```edn
com.moclojer/rq {:mvn/version "0.1.0"}
```

```clojure
[com.moclojer/rq "0.1.0"]
```

0 comments on commit 516a141

Please sign in to comment.