rack-redic 0.0.9 → 0.1.0
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.
- checksums.yaml +4 -4
- data/README.md +5 -12
- data/lib/rack/session/redic.rb +1 -0
- data/rack-redic.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43484c06c532c0e7c89c6f54a707b8ad8e00ee27
|
4
|
+
data.tar.gz: 7cba588e68fb54635a9e87533922aec5545ae1b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927b0fe62ecd72c3730dd4d68f05aacdec5dd80435b33368c4933bb283eee2e3f41dcdb1b13309120935f3632873b22fad48b2c17c4062046cf942917785d8d1
|
7
|
+
data.tar.gz: 5a076b28ae7ce33cc0b9b1bef0982a456b379c5cd70eb75e6ee4296fdaa5b15e26a63480a65516cc0eb472161b92a2058a773c0aafd3f32b7e9c5f241835c5cc
|
data/README.md
CHANGED
@@ -1,17 +1,10 @@
|
|
1
1
|
# Rack::Redic
|
2
2
|
|
3
|
-
Rack::Session::Redic provides simple cookie based session management.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
marshalling objects in and out of Redis. All that is required is that
|
9
|
-
this class respond to the `load` and `dump` methods, returning the
|
10
|
-
session hash and a string respectively.
|
11
|
-
|
12
|
-
Addtionally, you may pass in the URL for your Redis server. The default
|
13
|
-
URL is fetched from the ENV as 'REDIS_URL' in keeping with Heroku and
|
14
|
-
others' practices.
|
3
|
+
Rack::Session::Redic provides simple cookie based session management. Session data is stored in Redis via the [Redic](https://github.com/amakawa/redic) gem. The corresponding session key is maintained in the cookie.
|
4
|
+
|
5
|
+
You may optionally supply the class/module you would like to use when marshalling objects in and out of Redis. All that is required is that this class respond to the `load` and `dump` methods, returning the session hash and a string respectively.
|
6
|
+
|
7
|
+
Addtionally, you may pass in the URL for your Redis server. The default URL is fetched from the ENV as 'REDIS_URL' in keeping with Heroku and others' practices.
|
15
8
|
|
16
9
|
Any other options will get passed to Rack::Session::Abstract::Persisted.
|
17
10
|
|
data/lib/rack/session/redic.rb
CHANGED
data/rack-redic.gemspec
CHANGED