cachy 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/cachy.gemspec +1 -1
- data/lib/cachy.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/cachy.gemspec
CHANGED
data/lib/cachy.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Cachy
|
2
|
-
|
2
|
+
WHILE_RUNNING_TIMEOUT = 5*60 #seconds
|
3
3
|
KEY_VERSION_TIMEOUT = 30 #seconds
|
4
4
|
HEALTH_CHECK_KEY = 'cachy_healthy'
|
5
5
|
KEY_VERSIONS_KEY = 'cachy_key_versions'
|
@@ -201,7 +201,7 @@ class Cachy
|
|
201
201
|
def self.set_while_running(key, options)
|
202
202
|
return unless options.key? :while_running
|
203
203
|
warn "You cannot set while_running to nil" if options[:while_running] == nil
|
204
|
-
cache_store.write key, options[:while_running], :expires_in=>
|
204
|
+
cache_store.write key, options[:while_running], :expires_in=>WHILE_RUNNING_TIMEOUT
|
205
205
|
end
|
206
206
|
|
207
207
|
def self.meta_key_parts(key, options)
|