mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
via example
This commit is contained in:
parent
38bb0a143b
commit
502855aa03
1 changed files with 6 additions and 0 deletions
|
@ -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.**
|
||||
|
|
Loading…
Reference in a new issue