redis_queue 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_queue.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: 50d11b4132ef645c273d292f80f7e5cb3343a6ff
|
4
|
+
data.tar.gz: 3fa5a125253a148c7ceb2ecacfb0244a3e906451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae6cec0bcd1f7414d8a25b9300e53c2175a3f70ae23607f6bb57e2ae93a75eaa9271e5e0e6a559161bdad086563d9f0355964b8c9abb18bf35a756cc8e811902
|
7
|
+
data.tar.gz: 1b943a1bd0e3a0b2fc04f37b96db705c378c8dcea298ab134ae239b4108b543728a310ff1a23649e12fba6f428a689c201591f9932bbabea3e508880acf771ff
|
data/lib/redis_queue.rb
CHANGED
@@ -52,7 +52,7 @@ class RedisQueue
|
|
52
52
|
local vals = redis.call('hkeys', ARGV[2])
|
53
53
|
for i = 1, table.getn(vals) do
|
54
54
|
local timestamp = redis.call('hget', ARGV[2], vals[i])
|
55
|
-
if timestamp < ARGV[3] then
|
55
|
+
if tonumber(timestamp) < tonumber(ARGV[3]) then
|
56
56
|
redis.call('lpush', ARGV[1], vals[i])
|
57
57
|
redis.call('hdel', ARGV[2], vals[i])
|
58
58
|
end
|