Registry / utility / api-cache

api-cache

JSON →
library0.3.0rbrubygemsunverified

APICache allows any API client library to be easily wrapped with a robust caching layer, supporting caching, stale data, and API call limits.

gem install api_cache
INSTALL
IMPORT
SIG · API-CACHE
A
api-cache
utilityrubyv0.3.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.

APICache
require 'api_cache'

Cache API responses with a time-to-live.

require 'api_cache' APICache.get('my_key', :cache => 3600) do Net::HTTP.get(URI('http://example.com/data')) end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
api-cache — gem install api-cache · libregistry