redis-session-store 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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