rapidity 0.0.6.88987 → 0.0.6.91293

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rapidity/limiter.rb +6 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 897193cd6efb866ffe133657f6a347efc350c442b3c122dd0cfe470d33d7e962
4
- data.tar.gz: 669fbea11ae1b8a21f6b74a4c2364d38dd8e0652a461abb29cbd7f9c6d5ac684
3
+ metadata.gz: d2c2ba928c59042769a97e97d1a8ace792561f321ff87057ba0d5ea957c58404
4
+ data.tar.gz: cd3a53a865fe6579587a9db4071e3e9df2323e9f549387202e1733df94e0b8d8
5
5
  SHA512:
6
- metadata.gz: a75bff5e7518aa81dfc54ef4a841766a6eb53f00348fe9f0ded57e75338806050fd2a3195c329f45ba58008597f334f95bbb9f957ee961cb819e1844f5f7f3ed
7
- data.tar.gz: 9f868af1445b4fc84c6f2b71e734cc9a42656d1099f9475d41fc8a3aa8ee2fbab390e6710dc1540f0df4d5990885d08802528e2195671dc5020ee01da24db6fa
6
+ metadata.gz: bb2ca772d6265105843d02d868ec16237d380368b4c794bce6e21b4486375e36ac5bac6ea306fe9c20461e30b0f85d0e00ca9c99ede377657b4bb9577f4360a2
7
+ data.tar.gz: 2f04eea2acf51cf5d70d22299fdca299aa9ca001cfda9ba6ec70076864ee6c919a412576d6d55cf4b026c59509314967975cabd2646c80dab257db987f36a50b
@@ -83,6 +83,12 @@ module Rapidity
83
83
  end
84
84
  end
85
85
 
86
+ def force_ttl(ttl)
87
+ @pool.with do |conn|
88
+ conn.expire(key('remains'), ttl)
89
+ end
90
+ end
91
+
86
92
  def ensure_script_loaded
87
93
  @script = @pool.with do |conn|
88
94
  conn.script(:load, LUA_SCRIPT_CODE)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapidity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.88987
4
+ version: 0.0.6.91293
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yurusov Vlad
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-01 00:00:00.000000000 Z
12
+ date: 2022-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport