Module: HTTPX::Plugins::ResponseCache::InstanceMethods
- Defined in:
- lib/httpx/plugins/response_cache.rb
Instance Method Summary collapse
- #build_request ⇒ Object
-
#clear_response_cache ⇒ Object
wipes out all cached responses from the cache store.
Instance Method Details
#build_request ⇒ Object
94 95 96 97 98 99 100 101 |
# File 'lib/httpx/plugins/response_cache.rb', line 94 def build_request(*) request = super return request unless cacheable_request?(request) prepare_cache(request) request end |
#clear_response_cache ⇒ Object
wipes out all cached responses from the cache store.
90 91 92 |
# File 'lib/httpx/plugins/response_cache.rb', line 90 def clear_response_cache @options.response_cache_store.clear end |