redis-session-store 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +14 -3
  2. data/Rakefile +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -18,9 +18,20 @@ Installation
18
18
 
19
19
  gem install redis-session-store
20
20
 
21
- You know the rest.
22
-
23
21
  Configuration
24
22
  =============
25
23
 
26
- See lib/redis-session-store.rb for a list of valid options.
24
+ See lib/redis-session-store.rb for a list of valid options.
25
+ Set them using:
26
+
27
+ ActionController::Base.session = {
28
+ :db => 2,
29
+ :expire_after => 120.minutes,
30
+ :key_prefix => "myapp:session:"
31
+ }
32
+
33
+
34
+ In your Rails app, throw in an initializer with the following contents
35
+ and the configuration above:
36
+
37
+ ActionController::Base.session_store = RedisSessionStore
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rubygems/specification'
4
4
 
5
5
  spec = Gem::Specification.new do |s|
6
6
  s.name = 'redis-session-store'
7
- s.version = '0.1.2'
7
+ s.version = '0.1.3'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.has_rdoc = true
10
10
  s.extra_rdoc_files = ["LICENSE"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-session-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer