File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- redis-single-file (0.1.3 )
5- redis (~> 5.3.0 )
6- redis-clustering (~> 5.3.0 )
4+ redis-single-file (0.1.4 )
5+ redis (~> 5.4 )
6+ redis-clustering (~> 5.4 )
77
88GEM
99 remote: https://rubygems.org/
2929 racc (1.8.1 )
3030 rainbow (3.1.1 )
3131 rake (13.2.1 )
32- redis (5.3.0 )
32+ redis (5.4.1 )
3333 redis-client (>= 0.22.0 )
3434 redis-client (0.23.2 )
3535 connection_pool
3636 redis-cluster-client (0.13.3 )
3737 redis-client (~> 0.22 )
38- redis-clustering (5.3.0 )
39- redis (= 5.3.0 )
38+ redis-clustering (5.4.1 )
39+ redis (= 5.4.1 )
4040 redis-cluster-client (>= 0.10.0 )
4141 regexp_parser (2.10.0 )
4242 rspec (3.13.0 )
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ module RedisSingleFile
3232 # # synchronized logic defined here...
3333 # end
3434 #
35+ # @example Support concurrent worker processing
36+ # semaphore = RedisSingleFile::Semaphore.new(name: :concurrent_queue)
37+ # semaphore.synchronize(concurrency: 3) do
38+ # # synchronized logic defined here...
39+ # end
40+ #
3541 # @example Use your own redis client instance
3642 # redis = Redis.new(...)
3743 # semaphore = RedisSingleFile::Semaphore.new(redis:)
@@ -61,6 +67,12 @@ class Semaphore
6167 # than globally configured. Passing a value for this attribute will
6268 # redirect to that port.
6369 #
70+ # @note concurrency:
71+ # When a distributed lock needs to allow multiple executions at once,
72+ # concurrency can be used. When this settings is set to more than the
73+ # default value of 1, the queue will allow that many simultaneous slots
74+ # in the distributed queue.
75+ #
6476 # @return [self] semaphore instance
6577 def initialize (
6678 redis : nil , # provide your own redis instance
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module RedisSingleFile
4- VERSION = '0.1.3 '
4+ VERSION = '0.1.4 '
55end
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ Gem::Specification.new do |spec|
4141 # spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
4242
4343 # Redis Single File Dependencies
44- spec . add_dependency 'redis' , '~> 5.3.0 '
45- spec . add_dependency 'redis-clustering' , '~> 5.3.0 '
44+ spec . add_dependency 'redis' , '~> 5.4 '
45+ spec . add_dependency 'redis-clustering' , '~> 5.4 '
4646
4747 # Disable MFA Requirement - github publishing can't support
4848 spec . metadata [ 'rubygems_mfa_required' ] = 'false'
You can’t perform that action at this time.
0 commit comments