Skip to content

Commit dc67716

Browse files
authored
Bump redis dependency to 5.4 (#9)
* Bump redis dependency to 5.4 * Ooops, lock file
1 parent aa2bda9 commit dc67716

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PATH
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

88
GEM
99
remote: https://rubygems.org/
@@ -29,14 +29,14 @@ GEM
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)

lib/redis_single_file/semaphore.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

lib/redis_single_file/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module RedisSingleFile
4-
VERSION = '0.1.3'
4+
VERSION = '0.1.4'
55
end

redis-single-file.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)