async-job 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/job/backend/redis.rb +18 -0
- data/lib/async/job/backend.rb +11 -0
- data/lib/async/job/version.rb +1 -1
- data/lib/async/job.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a816771aa488ab674c70776181481a1de707a9e6eb4c8520325b62049015a89
|
4
|
+
data.tar.gz: d15d2f5f2276d96da9c91a7badf33b6bb86b9159de1839b25b8b77fc666166af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d47ff44888af2ce4ca369e2d1644e4d99f0dd179ca73f1f50d2362154087560031d11490f5b3887f4f1303e8eaaf4d597d8de66804b3b5f38d19d1a4ab29b03
|
7
|
+
data.tar.gz: e8f8c0a81b6980aacc5f46a5fa53de95d74ffe190af12a06542b14599d32331e941d39b44d60b80a00eff88fbb78605303dd58dc73be0b98ec42351becc49365
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative 'redis/server'
|
2
|
+
|
3
|
+
module Async
|
4
|
+
module Job
|
5
|
+
module Backend
|
6
|
+
module Redis
|
7
|
+
def self.new(**options)
|
8
|
+
endpoint = options.fetch(:endpoint) {Async::Redis.local_endpoint}
|
9
|
+
prefix = options.fetch(:prefix) {"async:job"}
|
10
|
+
|
11
|
+
client = Async::Redis::Client.new(endpoint)
|
12
|
+
|
13
|
+
return Async::Job::Backend::Redis::Server.new(client, prefix)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/async/job/version.rb
CHANGED
data/lib/async/job.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -74,6 +74,8 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- lib/async/job.rb
|
77
|
+
- lib/async/job/backend.rb
|
78
|
+
- lib/async/job/backend/redis.rb
|
77
79
|
- lib/async/job/backend/redis/delayed_queue.rb
|
78
80
|
- lib/async/job/backend/redis/job_store.rb
|
79
81
|
- lib/async/job/backend/redis/processing_queue.rb
|
metadata.gz.sig
CHANGED
Binary file
|