Class | FaradayMiddleware::Caching |
In: |
lib/faraday_middleware/response/caching.rb
|
Parent: | Faraday::Middleware |
Public: Caches GET responses and pulls subsequent ones from the cache.
cache | [R] |
Public: initialize the middleware.
cache - An object that responds to read, write and fetch (default: nil). options - An options Hash (default: {}):
:ignore_params - String name or Array names of query params that should be ignored when forming the cache key (default: []).
Yields if no cache is given. The block should return a cache object.