redis_page 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_page/sweeper_worker.rb +3 -1
- data/lib/redis_page/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b0a283cf712f47ba7f04554aaeb33be4e63d65
|
4
|
+
data.tar.gz: 094e5262272cbaef0ada15b56fb474d334ee2976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecee5b7639b50b0e7ae6ba499bc2a7e5755adbe5188ee60c435e6ecacbace06fdb7b35eaef7a857a6498deee6070cbdc47933701fc97d1e16c0b2ae62157532b
|
7
|
+
data.tar.gz: b3c29f4daca52fa9ce84ff9eae19a9102613f8c07864a613904bf2a01a314df89940acef4d88adece66ff6539136c66df8a03374d3b2efbeb7a326904a197da3
|
@@ -3,7 +3,9 @@ require "sidekiq"
|
|
3
3
|
module RedisPage
|
4
4
|
class SweeperWorker
|
5
5
|
include Sidekiq::Worker
|
6
|
-
|
6
|
+
|
7
|
+
# 相同 url 和 country 的缓存清理请求,在2分钟内只能执行一次
|
8
|
+
sidekiq_options queue: :redis_page, retry: false, unique: :until_timeout, unique_expiration: 2 * 60
|
7
9
|
|
8
10
|
def perform(url, country=nil)
|
9
11
|
uri = URI(url)
|
data/lib/redis_page/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saberma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|