You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sprockets-cache-mongodb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprockets-cache-mongodb

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Sprockets MongoDB Cache

A cache store for Sprockets which utilities MongoDB.

Usage

Gemfile:

gem "sprockets"
gem "sprockets-cache-mongodb"
# ...

config.ru:

require "sprockets-cache-mongodb"
env = Sprockets::Environment.new
env.cache = Sprockets::Cache::MongoDBStore.new(mongo, "sprockets")
# ...

Where the first argument is a Mongo connection (mongo-ruby-driver by 10gen), and the other (which is optional) is a database name.

FAQs

Package last updated on 18 Nov 2012

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