redis_queued_locks 0.0.24 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0c873b666d2c9f618789e6ef957e1ce7375da840bcbc1ce797d9e457bcc7d72
4
- data.tar.gz: 9f9c4637fae7ca1a1e8bdc247e23f5c11977af7962f545ae084d05126106dad0
3
+ metadata.gz: f699e402d9f382a72d2964ffe5d35b4d73b37a7c22f9f412fe08f9c7edd30cd7
4
+ data.tar.gz: aee1e0b45b2819ff2583ade2f51218a408dd7d734a415ec5c30f74de37d31511
5
5
  SHA512:
6
- metadata.gz: 06c3a4ee60f8c5da6d9272ed99bff10315496c79e6c922431529b7f34da896e17fb08c73b389080f82c54e3714d89780950517e3beff469661bbbf6c4bdbaf0e
7
- data.tar.gz: a0d7c9287c0a22923f2ddd4573ec6be63c0e274cff23fb5b2744b9cbd44368b7803b1ced3ffe9eefc53f0f2f23729177641535835bb6f97ede5f79074a308c4f
6
+ metadata.gz: 3f5b756ebd9fe435e4f99602c9dc23d16142a73a1f06d3a6bf30edf61326224064ab66cf47f44d56af80a2cf3cdc2249f06064d93164922c8c236ba005ae4b49
7
+ data.tar.gz: e72b3d3edcbbe538597157ce4d23c9ff149ad4547d30f82b063323d80e20eac87a0c8cc2cdc24fb81414d115932e0f274253c0d22dd0e5a5d7b62b22f0276948
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.26] - 2024-03-21
4
+ ### Added
5
+ - Logging: add `acquier_id`;
6
+
7
+ ## [0.0.25] - 2024-03-21
8
+ ### Changed
9
+ - Minor logs stylization;
10
+
3
11
  ## [0.0.24] - 2024-03-21
4
12
  ### Added
5
13
  - An optional ability to log each try of lock obtaining (see `RedisQueuedLocks::Acquier::AcquireLock::TryToLock.try_to_lock`);
@@ -7,7 +15,7 @@
7
15
  ## [0.0.23] - 2024-03-21
8
16
  ### Changed
9
17
  - Composed redis commands are invoked on the one conenction
10
- (instead of mutiple connection fetchiong from redis connection pool on each redis command);
18
+ (instead of mutiple connection fetching from redis connection pool on each redis command);
11
19
 
12
20
  ## [0.0.22] - 2024-03-21
13
21
  ### Added
data/README.md CHANGED
@@ -612,6 +612,8 @@ Detalized event semantics and payload structure:
612
612
  - `RedisQueuedLocks::Acquier::Try.try_to_lock` - detailed successful result analization;
613
613
  - better code stylization and interesting refactorings;
614
614
  - lock queue expiration (dead queue cleanup);
615
+ - support for `Dragonfly` DB backend;
616
+ - support for `Garnet` DB backend;
615
617
 
616
618
  ---
617
619
 
@@ -40,7 +40,11 @@ module RedisQueuedLocks::Acquier::AcquireLock::TryToLock
40
40
 
41
41
  if log_lock_try
42
42
  run_non_critical do
43
- logger.debug("[redis_queued_locks.try_lock_start] lock_key => '#{lock_key}'")
43
+ logger.debug(
44
+ "[redis_queued_locks.try_lock_start] " \
45
+ "lock_key => '#{lock_key}' " \
46
+ "acq_id => '#{acquier_id}'"
47
+ )
44
48
  end
45
49
  end
46
50
 
@@ -48,7 +52,11 @@ module RedisQueuedLocks::Acquier::AcquireLock::TryToLock
48
52
  result = redis.with do |rconn|
49
53
  if log_lock_try
50
54
  run_non_critical do
51
- logger.debug("[redis_queued_locks.try_lock_rconn_fetched] lock_key => '#{lock_key}'")
55
+ logger.debug(
56
+ "[redis_queued_locks.try_lock_rconn_fetched] " \
57
+ "lock_key => '#{lock_key}' " \
58
+ "acq_id => '#{acquier_id}'"
59
+ )
52
60
  end
53
61
  end
54
62
 
@@ -139,7 +139,8 @@ module RedisQueuedLocks::Acquier::AcquireLock
139
139
  run_non_critical do
140
140
  logger.debug(
141
141
  "[redis_queued_locks.start_lock_obtaining] " \
142
- "lock_key => '#{lock_key}'"
142
+ "lock_key => '#{lock_key}' " \
143
+ "acq_id => '#{acquier_id}'"
143
144
  )
144
145
  end
145
146
 
@@ -174,7 +175,8 @@ module RedisQueuedLocks::Acquier::AcquireLock
174
175
  run_non_critical do
175
176
  logger.debug(
176
177
  "[redis_queued_locks.lock_obtained] " \
177
- "lock_key => '#{result[:lock_key]}'" \
178
+ "lock_key => '#{result[:lock_key]}' " \
179
+ "acq_id: => '#{acquier_id}' " \
178
180
  "acq_time => #{acq_time} (ms)"
179
181
  )
180
182
  end
@@ -5,6 +5,6 @@ module RedisQueuedLocks
5
5
  #
6
6
  # @api public
7
7
  # @since 0.0.1
8
- # @version 0.0.24
9
- VERSION = '0.0.24'
8
+ # @version 0.0.26
9
+ VERSION = '0.0.26'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_queued_locks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov