Registry / networking / open-uri-cached

open-uri-cached

JSON →
library2.0.0rbrubygemsunverified

OpenURI with transparent disk caching

gem install open-uri-cached
INSTALL
IMPORT
SIG · OPEN-URI-CACHED
O
open-uri-cached
networkingrubyv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenURI::Cache
require 'open-uri/cached'

Cache HTTP responses to disk transparently using OpenURI.

require 'open-uri/cached' # First request fetches from network result1 = URI.open('http://example.com').read # Second request uses disk cache result2 = URI.open('http://example.com').read puts result1 == result2 # true
Debug
Known issues
gotchaCache expiration is not automatic; cached files persist indefinitely unless manually cleared.
fix
Implement a cache cleanup strategy or use a time-based cache invalidation wrapper.
affects: >= 0.0.0
Upgrade
Version history
2.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
open-uri-cached — gem install open-uri-cached · libregistry