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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e2eed00a88bfcfff5196a2288752c5901a15851
4
- data.tar.gz: 66989b1851972289e201d100f06ad204021e3fdb
3
+ metadata.gz: a0b0a283cf712f47ba7f04554aaeb33be4e63d65
4
+ data.tar.gz: 094e5262272cbaef0ada15b56fb474d334ee2976
5
5
  SHA512:
6
- metadata.gz: 559d251f7c6090fe66dd0429d63a37e90e369589cb640a5b4ffc080ec33247dae8d65e131890f44edb367acebbb3a6abab03f205b75f75bc1f39cee7a722d52a
7
- data.tar.gz: f38420bb21bc6b7e39522c9c9b1ce5a014259eab6db6d010bccb8d94233e9258912a5040884cf15e43c0989bec80a03ced06818b000ea01b77436daf59a5842c
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
- sidekiq_options queue: :redis_page, retry: false, unique: :until_and_while_executing
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)
@@ -1,3 +1,3 @@
1
1
  module RedisPage
2
- VERSION = '0.1.16'
2
+ VERSION = '0.1.17'
3
3
  end
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.16
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-10 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport