Sha256: 36d726895a123d2bedd2ba29f3afb277a7adcb26a7f3b6c898c4046ddf0fc8a5
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
class Restfulie::Client::Feature::Cache def execute(flow, request, response, env) found = Restfulie::Client.cache_provider.get([request.host, request.path], request) return found if found resp = flow.continue(request, response, env) if resp.kind_of?(Exception) resp else Restfulie::Client.cache_provider.put([request.host, request.path], request, resp) resp end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulie-1.0.0.beta1 | lib/restfulie/client/feature/cache.rb |
restfulie-0.1.0.beta1 | lib/restfulie/client/feature/cache.rb |