
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= cacheability
A gem that makes client-side caching of HTTP requests a no-brainer. It is built upon the Rack:Cache gem from Ryan Tomayko.
Cached data can be stored in heap, file or memcached. See the Rack::Cache documentation (http://tomayko.com/src/rack-cache/) for more information.
= Installation
gem install cacheability
= Usage
require 'cacheability/restclient'
RestClient.log = 'stdout' # displays requests and status codes
resource = RestClient::CacheableResource.new( 'http://some/cacheable/resource', :cache => { :metastore => 'file:/tmp/cache/meta', :entitystore => 'file:/tmp/cache/body' } ) resource.get # get from remote server, and cache if possible
resource.get # get from cache, if still fresh.
resource.get(:cache_control => 'no-cache') # explicitly tells to bypass the cache, requires rack-cache >= 0.4
Do yourself a favor and read:
= Supported libraries
= Dependencies
= COPYRIGHT
Copyright (c) 2008 Cyril Rohr. See LICENSE for details.
FAQs
Unknown package
We found that cacheability demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.