lock_and_cache_msgpack 4.0.7.pre2 → 4.0.7.pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lock_and_cache_msgpack.rb +1 -1
- data/lib/lock_and_cache_msgpack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a628bef0137f09af2c8d247200723b8a1b16a71f
|
|
4
|
+
data.tar.gz: c4fe2bd04b7cc7b94d7a9754da6d278b6f1822ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2763b2a4244b56142372fe6ed05622001732a2226fe7d29a6c1aa76bf154694f3009b4b7f51092b60b1bfd09aa5e5312ffc4539da89e595ab4d589dbb376e8d5
|
|
7
|
+
data.tar.gz: 176f2516394f978aadc5a5376caba5904fd9aeae4a3a37c4d89ef6651051673838aae665ce20a5edb0d396b7ff1258139de5a3fb2ee1f29455e1a1c1ce9c0aed
|
|
@@ -32,7 +32,7 @@ module LockAndCacheMsgpack
|
|
|
32
32
|
def LockAndCacheMsgpack.storage
|
|
33
33
|
@storage ||=
|
|
34
34
|
begin
|
|
35
|
-
raise "only redis for now" unless redis_connection.class.to_s == 'Redis'
|
|
35
|
+
raise "only redis for now" unless @redis_connection.class.to_s == 'Redis'
|
|
36
36
|
connection = @redis_connection.respond_to?(:call) ? @redis_connection.call : @redis_connection
|
|
37
37
|
@lock_manager = Redlock::Client.new [connection], retry_count: 1
|
|
38
38
|
connection
|