Socket
Book a DemoInstallSign in
Socket

rack-per_request_cache

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-per_request_cache

bundlerRubygems
Version
1.0.0
Version published
Maintainers
1
Created
Source

Rack::PerRequestCache

Simple module for caching arbitrary objects / constructs during a request.

Usage (Sinatra, Padrino, ...)

require 'rack/per_request_cache'
use Rack::PerRequestCache

Rails

# Gemfile
gem 'rack-per_request_cache', require: 'rack/per_request_cache'

# config/application.rb
config.use 'Rack::PerRequestCache'

Caveats

If Rack::PerRequestCache.clear_cache is not called, then no caching is performed. When hooked up as a middleware (see above), then the cache is enable dy default during the request lifecycle.

FAQs

Package last updated on 16 Nov 2011

Did you know?

Socket

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.

Install

Related posts