redis-session-store 0.1 → 0.1.1
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 +21 -0
- data/Rakefile +1 -2
- data/lib/{redis_session_store.rb → redis-session-store.rb} +2 -1
- metadata +3 -3
data/README
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
A simple Redis-based session store for Redis. But why, you ask,
|
2
|
+
when there's [redis-store](http://github.com/jodosha/redis-store/)?
|
3
|
+
redis-store is a one-fits-all solution, and I found it not to work
|
4
|
+
properly with Rails, mostly due to a problem that seemed to lie in
|
5
|
+
Rack's Abstract::ID class. I wanted something that worked, so I
|
6
|
+
blatantly stole the code from Rails' MemCacheStore and turned it
|
7
|
+
into a Redis version. No support for fancy stuff like distributed
|
8
|
+
storage across several Redis instances. Feel free to add what you
|
9
|
+
seem fit.
|
10
|
+
|
11
|
+
Installation
|
12
|
+
============
|
13
|
+
|
14
|
+
gem install redis-session-store
|
15
|
+
|
16
|
+
You know the rest.
|
17
|
+
|
18
|
+
Configuration
|
19
|
+
=============
|
20
|
+
|
21
|
+
See lib/redis-session-store.rb for a list of valid options.
|
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'
|
7
|
+
s.version = '0.1.1'
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.has_rdoc = true
|
10
10
|
s.extra_rdoc_files = ["LICENSE"]
|
@@ -15,7 +15,6 @@ spec = Gem::Specification.new do |s|
|
|
15
15
|
s.homepage = ""
|
16
16
|
s.add_dependency "redis"
|
17
17
|
s.require_path = 'lib'
|
18
|
-
s.autorequire = 'redis_session_store'
|
19
18
|
s.files = %w(README Rakefile) + Dir.glob("{lib}/**/*")
|
20
19
|
end
|
21
20
|
|
@@ -9,7 +9,8 @@ require 'redis'
|
|
9
9
|
# :host => Redis host name, default is localhost
|
10
10
|
# :port => Redis port, default is 6370
|
11
11
|
# :db => Database number, defaults to 0. Useful to separate your session storage from other data
|
12
|
-
# :key_prefix => Prefix for keys used in Redis, e.g. myapp-. Useful to separate session storage keys visibly from others
|
12
|
+
# :key_prefix => Prefix for keys used in Redis, e.g. myapp-. Useful to separate session storage keys visibly from others
|
13
|
+
# :expire_after => A number in seconds to set the timeout interval for the session. Will map directly to expiry in Redis
|
13
14
|
|
14
15
|
class RedisSessionStore < ActionController::Session::AbstractStore
|
15
16
|
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-session-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathias Meyer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
@@ -33,7 +33,7 @@ extra_rdoc_files:
|
|
33
33
|
files:
|
34
34
|
- README
|
35
35
|
- Rakefile
|
36
|
-
- lib/
|
36
|
+
- lib/redis-session-store.rb
|
37
37
|
- LICENSE
|
38
38
|
has_rdoc: true
|
39
39
|
homepage: ""
|