Liking cljdoc? Tell your friends :D

goose.brokers.redis.broker


default-optsclj

Map of sample config for Redis Message Broker.

Keys

:url : URL to connect to Redis.
URL Syntax wiki

:pool-opts : Config for connection-pooling. Refer to goose.specs.redis/pool-opts for allowed spec of pool opts.
Example : goose.defaults/redis-producer-pool-opts

Map of sample config for Redis Message Broker.

### Keys
`:url`       : URL to connect to Redis.\
[URL Syntax wiki](https://github.com/lettuce-io/lettuce-core/wiki/Redis-URI-and-connection-details#uri-syntax)

`:pool-opts` : Config for connection-pooling. Refer to `goose.specs.redis/pool-opts` for allowed spec of pool opts.\
Example      : [[goose.defaults/redis-producer-pool-opts]]
sourceraw docstring

new-consumerclj

(new-consumer conn-opts)
(new-consumer conn-opts scheduler-polling-interval-sec)

Creates a Redis broker implementation for worker.

Args

conn-opts : Config for connecting to Redis.
Example : default-opts

scheduler-polling-interval-sec : Interval at which to poll Redis for scheduled jobs.
Acceptable values : 1-60

Usage

(new-consumer redis-conn-opts 10)
Creates a Redis broker implementation for worker.

### Args
`conn-opts`                       : Config for connecting to Redis.\
Example                           : [[default-opts]]

`scheduler-polling-interval-sec`  : Interval at which to poll Redis for scheduled jobs.\
Acceptable values                 : `1-60`

### Usage
```Clojure
(new-consumer redis-conn-opts 10)
```

- [Redis Message Broker wiki](https://github.com/nilenso/goose/wiki/Redis)
sourceraw docstring

new-producerclj

(new-producer {:keys [url pool-opts] :as conn-opts})

Creates a Redis broker implementation for client.

Args

conn-opts : Config for connecting to Redis.
Example : default-opts

Usage

(new-producer redis-conn-opts)
Creates a Redis broker implementation for client.

### Args
`conn-opts`  : Config for connecting to Redis.\
Example      : [[default-opts]]

### Usage
```Clojure
(new-producer redis-conn-opts)
```

- [Redis Message Broker wiki](https://github.com/nilenso/goose/wiki/Redis)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close