mlanett-redis-lock 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile-redis2.lock +1 -1
- data/Gemfile-redis3.lock +1 -1
- data/lib/redis-lock.rb +8 -8
- data/lib/redis-lock/version.rb +1 -1
- metadata +2 -2
data/Gemfile-redis2.lock
CHANGED
data/Gemfile-redis3.lock
CHANGED
data/lib/redis-lock.rb
CHANGED
@@ -8,14 +8,14 @@ class Redis
|
|
8
8
|
class LockNotAcquired < StandardError
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
attr_reader :redis
|
12
|
+
attr_reader :key
|
13
|
+
attr_reader :okey # key with redis namespace
|
14
|
+
attr_reader :oval
|
15
|
+
attr_reader :xkey # expiration key with redis namespace
|
16
|
+
attr_reader :xval
|
17
|
+
attr_accessor :life # how long we expect to keep this lock locked
|
18
|
+
attr_accessor :logger
|
19
19
|
|
20
20
|
# @param redis is a Redis instance
|
21
21
|
# @param key is a unique string identifying the object to lock, e.g. "user-1"
|
data/lib/redis-lock/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mlanett-redis-lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|