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.
- data/README.md +14 -3
- data/Rakefile +1 -1
- 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