1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

via example

This commit is contained in:
Mike Perham 2014-03-26 22:07:34 -07:00
parent 38bb0a143b
commit 502855aa03

View file

@ -39,6 +39,12 @@ end
```ruby
client = Sidekiq::Client.new(ConnectionPool.new { Redis.new })
client.push(...)
```
```ruby
Sidekiq::Client.via(ConnectionPool.new { Redis.new }) do
FooWorker.perform_async
BarWorker.perform_async
end
```
**Sharding support does require a breaking change to client-side
middleware, see 3.0-Upgrade.md.**