4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/smoke/cache.rb', line 4
def fetch(uri, options)
output = (enabled?) ? read(uri) : query(uri, options)
unless output.keys.any?
Smoke.log.info "Cache miss"
output = query(uri, options)
end
output
rescue
query(uri, options)
end
|