0.06
Low commit activity in last 3 years
No release in over a year
OpenURI with transparent disk caching
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.10.0
~> 3.14.0
 Project Readme

OpenURI with caching

Carelessly make OpenURI requests without getting hate mail.

Usage

Require the library

require 'open-uri/cached'
open('http://www.someone-that-hates-being-scraped.com').read

Configuring

OpenURI::Cache.cache_path = '/tmp/open-uri'

Invalidating

OpenURI::Cache.invalidate('https://example.com/')

OpenURI::Cache.invalidate_all!