gemini_cache 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gemini_cache.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04685d49a72d97ba748888a2c1a90ffae49dd52d5bdea582e5cc93c5278ee05d'
|
4
|
+
data.tar.gz: 1fbf73ef5d37c9eeffee36e2667faf3846a326a217c4ae3dcc9bd6f781bec0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9397ae965759c13a8b4f23cd26e17fbd66807cf6ef09ec299b5ff6695fdbc32f74c9858574f727da489d7039d761be2d900220c39d8d3d9a6cfb22360eb6bcdb
|
7
|
+
data.tar.gz: efa123d59d17f71e2193b82de461b0648d5a887377175331993b9bc48ef17872b0987f9a9622311c40062a6639f3c72e792d69b5a2345568f4985601eb0de624
|
data/lib/gemini_cache.rb
CHANGED
@@ -122,4 +122,12 @@ module GeminiCache
|
|
122
122
|
rescue Faraday::Error => e
|
123
123
|
raise "Erro na requisição: #{e.message}"
|
124
124
|
end
|
125
|
+
|
126
|
+
def self.delete_all
|
127
|
+
GeminiCache.list.each { |item| item.delete }
|
128
|
+
end
|
129
|
+
|
130
|
+
class << self
|
131
|
+
alias clear delete_all
|
132
|
+
end
|
125
133
|
end
|