Class: HTTP::Cache::NullCache
- Inherits:
-
Object
- Object
- HTTP::Cache::NullCache
- Defined in:
- lib/http/cache/null_cache.rb
Overview
NoOp cache. Always makes the request. Allows avoiding conditionals in the request flow.
Instance Method Summary collapse
-
#perform(request, options) {|request, options| ... } ⇒ Response
The result of the provided block.
Instance Method Details
#perform(request, options) {|request, options| ... } ⇒ Response
Returns the result of the provided block.
8 9 10 |
# File 'lib/http/cache/null_cache.rb', line 8 def perform(request, ) yield(request, ) end |