Socket
Book a DemoInstallSign in
Socket

simple_redis_store

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_redis_store

bundlerRubygems
Version
0.0.1
Version published
Maintainers
1
Created
Source

Simple Redis Store for ActiveSupport::Cache

simple_redis_store provides a lightweight Redis cache store for ActiveSupport::Cache.

Prerequisites

simple_redis_store relies on Redis being installed and running.

Mac users can install Redis via brew install redis.

Everyone else, check the package manager of your operating system.

Installation

Add this line to your application's Gemfile then run bundle:

gem 'simple_redis_store'

Usage

Ruby on Rails

# config/environments/production.rb
config.action_controller.perform_caching = true
config.cache_store = :simple_redis_store

Standalone

ActiveSupport::Cache.lookup_store :simple_redis_store

TODO

  • Implement multi key retrieval (def read_multi)
  • Improve configuration support
  • Tests

(c) 2012 Kieran Pilkington, release under the MIT license

FAQs

Package last updated on 08 Oct 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