Sha256: 020d46288a4085025402600cdc5f9c64138189feea4e3d22ed086e513a404205

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

A simple Redis-based session store for Redis. But why, you ask,
when there's [redis-store](http://github.com/jodosha/redis-store/)?
redis-store is a one-fits-all solution, and I found it not to work
properly with Rails, mostly due to a problem that seemed to lie in
Rack's Abstract::ID class. I wanted something that worked, so I
blatantly stole the code from Rails' MemCacheStore and turned it
into a Redis version. No support for fancy stuff like distributed
storage across several Redis instances. Feel free to add what you
seem fit.

This library doesn't offer anything related to caching, and is
only suitable for Rails applications. For other frameworks or
drop-in support for caching, check out
[redis-store](http://github.com/jodosha/redis-store/)

Installation
============

    gem install redis-session-store

Configuration
=============

See lib/redis-session-store.rb for a list of valid options.
Set them using:

    ActionController::Base.session = {
      :db => 2,
      :expire_after => 120.minutes,
      :key_prefix => "myapp:session:"
    }
    

In your Rails app, throw in an initializer with the following contents
and the configuration above:

    ActionController::Base.session_store = RedisSessionStore

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
redis-session-store-0.1.8 README.md
redis-session-store-0.1.7 README.md
redis2-session-store-0.0.3 README.md
redis2-session-store-0.0.2 README.md
redis2-session-store-0.0.1 README.md
redis-session-store-0.1.6 README.md
rails3-redis-session-store-0.1.7 README.md
redis-session-store-0.1.5 README.md
redis-session-store-0.1.4 README.md
redis-session-store-0.1.3 README.md