Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlite_cache

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite_cache

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SqliteCache

SqliteCache allows to use a SQLite database as storage for your cache. It comes with an API compatible with ActiveSupport::Cache and can though easily used in any Rails Application.

Installation

Add this line to your application's Gemfile:

gem 'sqlite_cache'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sqlite_cache

Usage

To use SqliteCache just head over to e.g. your production.rbfile and add the following line

config.cache_store = SqliteCache::Store.new

This will use an inmemory SQLite database. You can also specify a file location

config.cache_store = SqliteCache::Store.new("tmp/cache.db")

For more information about Rails Caching please have a look at the Rails Cache Guide

Testing

rake

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 23 Sep 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc