Map of sample config for Redis Message Broker.
: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]]
(new-consumer conn-opts)
(new-consumer conn-opts scheduler-polling-interval-sec)
Creates a Redis broker implementation for worker.
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
(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)
(new-producer {:keys [url pool-opts] :as conn-opts})
Creates a Redis broker implementation for client.
conn-opts
: Config for connecting to Redis.
Example : default-opts
(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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close