Class: HTTP::Cache::NullCache

Inherits:
Object
  • Object
show all
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

Instance Method Details

#perform(request, options) {|request, options| ... } ⇒ Response

Returns the result of the provided block.

Yields:

  • (request, options)

    so that the request can actually be made

Returns:

  • (Response)

    the result of the provided block



8
9
10
# File 'lib/http/cache/null_cache.rb', line 8

def perform(request, options)
  yield(request, options)
end