redis-store 1.0.0.beta2 → 1.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of redis-store might be problematic. Click here for more details.

Files changed (51) hide show
  1. data/CHANGELOG +74 -23
  2. data/Gemfile +12 -7
  3. data/Gemfile.lock +183 -0
  4. data/MIT-LICENSE +1 -1
  5. data/README.md +49 -14
  6. data/Rakefile +8 -4
  7. data/VERSION +1 -1
  8. data/lib/{rack/session/rails.rb → action_controller/session/redis_session_store.rb} +24 -20
  9. data/lib/{cache/rails → active_support/cache}/redis_store.rb +64 -22
  10. data/lib/cache/merb/redis_store.rb +20 -8
  11. data/lib/cache/sinatra/redis_store.rb +20 -8
  12. data/lib/i18n/backend/redis.rb +67 -0
  13. data/lib/rack/cache/redis_metastore.rb +4 -4
  14. data/lib/rack/session/redis.rb +7 -7
  15. data/lib/redis-store.rb +16 -14
  16. data/lib/redis/distributed_store.rb +35 -0
  17. data/lib/redis/factory.rb +29 -10
  18. data/lib/redis/store.rb +30 -0
  19. data/lib/redis/store/interface.rb +17 -0
  20. data/lib/redis/store/marshalling.rb +41 -0
  21. data/lib/redis/store/namespace.rb +54 -0
  22. data/lib/redis/store/ttl.rb +37 -0
  23. data/lib/redis/store/version.rb +12 -0
  24. data/redis-store.gemspec +32 -20
  25. data/spec/action_controller/session/redis_session_store_spec.rb +121 -0
  26. data/spec/{cache/rails → active_support/cache}/redis_store_spec.rb +93 -19
  27. data/spec/cache/merb/redis_store_spec.rb +14 -11
  28. data/spec/cache/sinatra/redis_store_spec.rb +14 -11
  29. data/spec/config/master.conf +1 -1
  30. data/spec/config/single.conf +1 -1
  31. data/spec/config/slave.conf +1 -1
  32. data/spec/i18n/backend/redis_spec.rb +56 -0
  33. data/spec/rack/cache/entitystore/redis_spec.rb +10 -8
  34. data/spec/rack/cache/metastore/redis_spec.rb +2 -2
  35. data/spec/rack/session/redis_spec.rb +6 -6
  36. data/spec/redis/distributed_store_spec.rb +47 -0
  37. data/spec/redis/factory_spec.rb +58 -16
  38. data/spec/redis/store/interface_spec.rb +23 -0
  39. data/spec/redis/store/marshalling_spec.rb +83 -0
  40. data/spec/redis/store/namespace_spec.rb +76 -0
  41. data/spec/redis/store/version_spec.rb +7 -0
  42. data/spec/spec_helper.rb +16 -5
  43. data/tasks/redis.tasks.rb +19 -12
  44. metadata +33 -21
  45. data/lib/redis/distributed_marshaled.rb +0 -28
  46. data/lib/redis/marshaled_client.rb +0 -65
  47. data/lib/redis_store/version.rb +0 -10
  48. data/spec/rack/session/redis_session_store_spec.rb +0 -75
  49. data/spec/redis/distributed_marshaled_redis_spec.rb +0 -33
  50. data/spec/redis/marshaled_client_spec.rb +0 -83
  51. data/spec/redis_store/version_spec.rb +0 -7
data/CHANGELOG CHANGED
@@ -1,3 +1,54 @@
1
+ *1.0.0 [beta3] (September 10, 2010)*
2
+
3
+ * Bump version v1.0.0.beta3
4
+ * Updated gemspec
5
+ * Made compatible with Ruby 1.9.2
6
+ * Made compatible with Rails 3
7
+ * Making the redis-store rails session store compatible with Rails 2.3.9. [Aaron Gibralter]
8
+ * Updated to v2.3.9 the development dependencies for Rails 2.x
9
+ * Added password support
10
+ * Set default URI string for Rack session store according to redis gem
11
+ * Require redis:// scheme as mandatory part of URI string
12
+ * Updated locked dependencies
13
+ * Added namespace support for Redis::DistrubutedStore
14
+ * Specs for Interface module
15
+ * Moved a spec to reflect lib/ structure
16
+ * Made specs run again with bundler-1.0.0.rc.2
17
+ * Prepare for bundler-1.0.0.rc.1
18
+ * Use tmp/ for Redis database dumps
19
+ * README, gemspec
20
+ * Lookup for scoped keys
21
+ * Introducing I18n::Backend::Redis
22
+ * Don't pollute Redis namespace. closes #16
23
+ * Don't look twice for Rails module
24
+ * Fixed loading ActionDispatch::Session issue with Rails 3
25
+ * ActiveSupport cache now uses new Rails 3 namespace API
26
+ * Let Rack::Cache entity store to use plain Redis client
27
+ * CHANGELOG
28
+ * Gemspec
29
+ * Redis::DistributedMarshaled => Redis::DistributedStore
30
+ * Extracted expiration logic in Redis::Ttl
31
+ * Introducing Redis::Store and extracted marshalling logic into Redis::Marshalling
32
+ * CHANGELOG
33
+ * Gemspec
34
+ * Removed superfluous specs. Documentation.
35
+ * Made the specs pass with Ruby 1.9.2 and Rails 3
36
+ * Made the specs pass with Ruby 1.9.2
37
+ * Prepare specs for Ruby 1.9.2
38
+ * Made the specs pass for Rails 3
39
+ * Namespaced keys for ActiveSupport::Cache::RedisStore
40
+ * Got RedisSessionStore working again with namespace
41
+ * Delegate MarshaledClient#to_s decoration to Redis::Namespace
42
+ * Redis::Namespace
43
+ * Accept :namespace option when instantiate a store
44
+ * Test against merb-1.1.0 for now
45
+ * Updated Rake tasks for Redis installation
46
+ * Advanced configurations for Rails in README. closes #8
47
+ * Locked gems
48
+ * Changed the gemspec according to the new directories structure
49
+ * Changed directories structure, according to the ActiveSupport loading policies
50
+ * Typo in CHANGELOG
51
+
1
52
  *1.0.0 [beta2] (June 12, 2010)*
2
53
 
3
54
  * Bump version v1.0.0.beta2
@@ -5,14 +56,14 @@
5
56
  * Added CHANGELOG
6
57
  * Rake namespace: redis_cluster => redis:cluster
7
58
  * Fixed Rails 3 failing spec
8
- * Added ActiveSupport
9
- * Enabled notifications for ActiveSupport
59
+ * Added ActiveSupport::Cache::RedisStore#read_multi
60
+ * Enabled notifications for ActiveSupport::Cache::RedisStore
10
61
  * Moved spec
11
- * Use consinstent Rails 3 check in session store
62
+ * Use consistent Rails 3 check in session store
12
63
  * Make sure of use top-level module
13
64
  * Updated Rails 2.x development dependencies
14
65
 
15
- *1.0.0 [beta1] (June 10, 2010)*
66
+ *1.0.0 [beta1] (June 9, 2010)*
16
67
 
17
68
  * Bump version v1.0.0.beta1
18
69
  * Made specs pass for Ruby 1.9.1
@@ -23,20 +74,20 @@
23
74
  * Require redis >= 2.0.0 gem in Gemfile
24
75
  * Updated instructions for Rails 2 session store
25
76
  * Added instructions for Rails 3 configuration
26
- * Check against Rails#version instead of Rails
77
+ * Check against Rails#version instead of Rails::VERSION::STRING
27
78
  * Added redis gem as dependency
28
79
  * Changed spec_helper.rb according to the new Rails 3 check
29
80
  * Fix the rails3 check [Bruno Michel]
30
81
  * Added bundler cleanup Rake task
31
- * Fixed ActiveSupport
82
+ * Fixed ActiveSupport::Cache::RedisStore#fetch
32
83
  * Re-enabled redis:console Rake task
33
84
  * Don't use Rspec#have with ActiveSupport 3
34
- * Fixed Rails 2 regression for ActiveSupport
35
- * Fixed issues for ActiveSupport
85
+ * Fixed Rails 2 regression for ActiveSupport::Cache::RedisStore#delete_matched
86
+ * Fixed issues for ActiveSupport::Cache::RedisStore #delete_matched, #read, #rwrite
36
87
  * Rails 3 namespace
37
88
  * Use Rails edge instead of 3.0.0.beta3
38
89
  * Made the specs run again
39
- * Updated Gemfile development/test dependecies for rails3.
90
+ * Updated Gemfile development/test dependencies for rails3.
40
91
  * Updated README instructions
41
92
  * Updated test configuration files, according to redis-2.0.0-rc1 defaults
42
93
  * Made specs pass with redis-2.0.0 gem
@@ -52,7 +103,7 @@
52
103
  * Started namespace migration for redis-2.0.0
53
104
  * Merge branch 'master' of http://github.com/akahn/redis-store
54
105
  * Fixed dependency issues. [Brian Takita]
55
- * Removed methodpara because it require ruby 1.9.1. [Brian Takita]
106
+ * Removed methopara because it require ruby 1.9.1. [Brian Takita]
56
107
  * Merge branch 'master' of http://github.com/dsander/redis-store [Brian Takita]
57
108
  * Moved RedisSessionStore to rack session directory. [Brian Takita]
58
109
  * Got RedisSessionStore working with passing specs. [Brian Takita]
@@ -66,7 +117,7 @@
66
117
  * Fixed redis deprecation warnings. [Brian Takita]
67
118
  * Using redis 1.0.4. Loading redis.tasks.rb from redis gem using Bundler. Fixed redis test configurations. [Brian Takita]
68
119
  * Supports redis 1.0.5 [Dominik Sander]
69
- * Add Rack [Alexander Kahn]
120
+ * Add Rack::Session::Redis usage for Sinatra to README [Alexander Kahn]
70
121
  * Updated development and testing dependencies
71
122
  * Made compatible with rack-cache-0.5.2
72
123
 
@@ -133,31 +184,31 @@
133
184
  * README formatting issues
134
185
  * README formatting (again)
135
186
  * README formatting
136
- * Updated Rack
137
- * Make Rack
138
- * Added instructions for Rack
139
- * Expiration support for Rack
187
+ * Updated Rack::Session instructions for Sinatra
188
+ * Make Rack::Session implementation working with Merb
189
+ * Added instructions for Rack::Session
190
+ * Expiration support for Rack::Session
140
191
  * Ensure to test Rails and Sinatra expiration implementations with both MarshaledRedis and DistrbutedMarshaledRedis
141
- * Expiration support for Merb
192
+ * Expiration support for Merb::Cache
142
193
  * Use full qualified class names in specs. Minor spec fix.
143
194
  * Ported for foreword compatibility the expiration implementation from ezmobius/redis-rb
144
195
  * Little spec cleanup
145
- * Full support for Rack
196
+ * Full support for Rack::Session
146
197
  * Extracted some logic into RedisFactory
147
- * Initial support for Rack
198
+ * Initial support for Rack::Session
148
199
 
149
200
  *0.2.0 [Final] (April 30, 2009)*
150
201
 
151
202
  * Prepare for v0.2.0
152
203
  * Links in README
153
- * Maybe someday I will use the right formating rules at first attempt
204
+ * Maybe someday I will use the right formatting rules at first attempt
154
205
  * Still formatting README
155
206
  * Formatting for README
156
- * Updated instructions for Rack
207
+ * Updated instructions for Rack::Cache
157
208
  * Don't require any cache store if no Ruby framework is detected
158
- * Implemented EntityStore for Rack
159
- * Added REDIS constant for Rack
160
- * MetaStore implementation for Rack
209
+ * Implemented EntityStore for Rack::Cache
210
+ * Added REDIS constant for Rack::Cache::Metastore
211
+ * MetaStore implementation for Rack::Cache
161
212
 
162
213
  *0.1.0 [Final] (April 30, 2009)*
163
214
 
data/Gemfile CHANGED
@@ -8,21 +8,26 @@ end
8
8
 
9
9
  group :development, :test, :rails3 do
10
10
  gem "rack"
11
- gem "ruby-debug"
12
11
  gem "rspec"
13
12
  gem "rack-cache"
14
- gem "merb"
15
- gem "methopara" if RUBY_VERSION.match /1\.9/
13
+ gem "merb", "1.1.0"
14
+ gem "i18n"
15
+
16
+ if RUBY_VERSION > '1.9'
17
+ gem "methopara" # required by merb.
18
+ else
19
+ gem "ruby-debug" # linecache isn't compatible with 1.9.2 yet.
20
+ end
16
21
  end
17
22
 
18
23
  if ENV["REDIS_STORE_ENV"] == "rails3"
19
24
  group :rails3 do
20
- gem "activesupport", "3.0.0.beta4"
21
- gem "actionpack", "3.0.0.beta4"
25
+ gem "activesupport", "3.0.0"
26
+ gem "actionpack", "3.0.0"
22
27
  end
23
28
  else
24
29
  group :test do
25
- gem "activesupport", "2.3.8"
26
- gem "actionpack", "2.3.8"
30
+ gem "activesupport", "2.3.9"
31
+ gem "actionpack", "2.3.9"
27
32
  end
28
33
  end
data/Gemfile.lock ADDED
@@ -0,0 +1,183 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ ParseTree (3.0.6)
5
+ RubyInline (>= 3.7.0)
6
+ sexp_processor (>= 3.0.0)
7
+ RubyInline (3.8.6)
8
+ ZenTest (~> 4.3)
9
+ ZenTest (4.4.0)
10
+ abstract (1.0.0)
11
+ actionpack (2.3.9)
12
+ activesupport (= 2.3.9)
13
+ rack (~> 1.1.0)
14
+ activesupport (2.3.9)
15
+ addressable (2.2.0)
16
+ bcrypt-ruby (2.1.2)
17
+ columnize (0.3.1)
18
+ data_objects (0.10.2)
19
+ addressable (~> 2.1)
20
+ diff-lcs (1.1.2)
21
+ dm-aggregates (0.10.2)
22
+ dm-core (~> 0.10.2)
23
+ dm-constraints (0.10.2)
24
+ dm-core (~> 0.10.2)
25
+ dm-core (0.10.2)
26
+ addressable (~> 2.1)
27
+ extlib (~> 0.9.14)
28
+ dm-migrations (0.10.2)
29
+ dm-core (~> 0.10.2)
30
+ dm-serializer (0.10.2)
31
+ dm-core (~> 0.10.2)
32
+ fastercsv (~> 1.5.0)
33
+ json_pure (~> 1.2.0)
34
+ dm-sweatshop (0.10.2)
35
+ dm-core (~> 0.10.2)
36
+ randexp (~> 0.1.4)
37
+ dm-timestamps (0.10.2)
38
+ dm-core (~> 0.10.2)
39
+ dm-types (0.10.2)
40
+ bcrypt-ruby (~> 2.1.2)
41
+ dm-core (~> 0.10.2)
42
+ fastercsv (~> 1.5.0)
43
+ json_pure (~> 1.2.0)
44
+ stringex (~> 1.1.0)
45
+ uuidtools (~> 2.1.1)
46
+ dm-validations (0.10.2)
47
+ dm-core (~> 0.10.2)
48
+ do_sqlite3 (0.10.2)
49
+ data_objects (= 0.10.2)
50
+ erubis (2.6.6)
51
+ abstract (>= 1.0.0)
52
+ extlib (0.9.15)
53
+ fastercsv (1.5.3)
54
+ gemcutter (0.6.1)
55
+ git (1.2.5)
56
+ haml (3.0.18)
57
+ highline (1.6.1)
58
+ i18n (0.4.1)
59
+ jeweler (1.4.0)
60
+ gemcutter (>= 0.1.0)
61
+ git (>= 1.2.5)
62
+ rubyforge (>= 2.0.0)
63
+ json_pure (1.2.4)
64
+ linecache (0.43)
65
+ mailfactory (1.4.0)
66
+ mime-types (>= 1.13.1)
67
+ merb (1.1.0)
68
+ dm-aggregates (~> 0.10)
69
+ dm-constraints (~> 0.10)
70
+ dm-serializer (~> 0.10)
71
+ dm-sweatshop (~> 0.10)
72
+ dm-timestamps (~> 0.10)
73
+ dm-types (~> 0.10)
74
+ dm-validations (~> 0.10)
75
+ do_sqlite3 (~> 0.10)
76
+ merb-action-args (= 1.1.0)
77
+ merb-assets (= 1.1.0)
78
+ merb-auth (= 1.1.0)
79
+ merb-cache (= 1.1.0)
80
+ merb-core (= 1.1.0)
81
+ merb-exceptions (= 1.1.0)
82
+ merb-gen (= 1.1.0)
83
+ merb-haml (= 1.1.0)
84
+ merb-helpers (= 1.1.0)
85
+ merb-mailer (= 1.1.0)
86
+ merb-param-protection (= 1.1.0)
87
+ merb-slices (= 1.1.0)
88
+ merb_datamapper (= 1.1.0)
89
+ merb-action-args (1.1.0)
90
+ ParseTree (>= 2.1.1)
91
+ merb-core (~> 1.1.0)
92
+ ruby2ruby (>= 1.1.9)
93
+ merb-assets (1.1.0)
94
+ merb-core (~> 1.1.0)
95
+ merb-auth (1.1.0)
96
+ merb-auth-core (~> 1.1.0)
97
+ merb-auth-more (~> 1.1.0)
98
+ merb-auth-slice-password (~> 1.1.0)
99
+ merb-core (~> 1.1.0)
100
+ merb-auth-core (1.1.1)
101
+ merb-core (~> 1.1)
102
+ merb-auth-more (1.1.1)
103
+ merb-auth-core (~> 1.1.1)
104
+ merb-auth-slice-password (1.1.1)
105
+ merb-auth-core (~> 1.1.1)
106
+ merb-auth-more (~> 1.1.1)
107
+ merb-slices (~> 1.1)
108
+ merb-cache (1.1.0)
109
+ merb-core (~> 1.1.0)
110
+ merb-core (1.1.0)
111
+ bundler (>= 0.9.3)
112
+ erubis (>= 2.6.2)
113
+ extlib (>= 0.9.13)
114
+ mime-types (>= 1.16)
115
+ rack
116
+ rake
117
+ rspec
118
+ merb-exceptions (1.1.0)
119
+ merb-core (~> 1.1.0)
120
+ merb-mailer (~> 1.1.0)
121
+ merb-gen (1.1.0)
122
+ merb-core (~> 1.1.0)
123
+ templater (>= 1.0.0)
124
+ merb-haml (1.1.0)
125
+ haml (>= 2.0.3)
126
+ merb-core (~> 1.1.0)
127
+ merb-helpers (1.1.0)
128
+ merb-core (~> 1.1.0)
129
+ merb-mailer (1.1.0)
130
+ mailfactory (>= 1.2.3)
131
+ merb-core (~> 1.1.0)
132
+ merb-param-protection (1.1.0)
133
+ merb-core (~> 1.1.0)
134
+ merb-slices (1.1.0)
135
+ merb-core (~> 1.1.0)
136
+ merb_datamapper (1.1.0)
137
+ dm-core (~> 0.10)
138
+ dm-migrations (~> 0.10)
139
+ merb-core (~> 1.1.0)
140
+ mime-types (1.16)
141
+ rack (1.1.0)
142
+ rack-cache (0.5.2)
143
+ rack (>= 0.4)
144
+ rake (0.8.7)
145
+ randexp (0.1.5)
146
+ ParseTree
147
+ redis (2.0.6)
148
+ rspec (1.3.0)
149
+ ruby-debug (0.10.3)
150
+ columnize (>= 0.1)
151
+ ruby-debug-base (~> 0.10.3.0)
152
+ ruby-debug-base (0.10.3)
153
+ linecache (>= 0.3)
154
+ ruby2ruby (1.2.5)
155
+ ruby_parser (~> 2.0)
156
+ sexp_processor (~> 3.0)
157
+ ruby_parser (2.0.5)
158
+ sexp_processor (~> 3.0)
159
+ rubyforge (2.0.4)
160
+ json_pure (>= 1.1.7)
161
+ sexp_processor (3.0.5)
162
+ stringex (1.1.0)
163
+ templater (1.0.0)
164
+ diff-lcs (>= 1.1.2)
165
+ extlib (>= 0.9.5)
166
+ highline (>= 1.4.0)
167
+ uuidtools (2.1.1)
168
+
169
+ PLATFORMS
170
+ ruby
171
+
172
+ DEPENDENCIES
173
+ actionpack (= 2.3.9)
174
+ activesupport (= 2.3.9)
175
+ git
176
+ i18n
177
+ jeweler
178
+ merb (= 1.1.0)
179
+ rack
180
+ rack-cache
181
+ redis (>= 2.0.0)
182
+ rspec
183
+ ruby-debug
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Luca Guidi
1
+ Copyright (c) 2009 - 2010 Luca Guidi
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # Rack::Session, Rack::Cache and cache Redis stores for Ruby web frameworks
1
+ # Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for Ruby web frameworks
2
2
 
3
3
  ## Installation
4
4
 
5
5
  Download and install Redis from [http://code.google.com/p/redis/](http://code.google.com/p/redis/)
6
6
 
7
- wget http://redis.googlecode.com/files/redis-2.0.0-rc1.tar.gz
8
- tar -zxf redis-2.0.0-rc1.tar.gz
9
- mv redis-2.0.0-rc1 redis
7
+ wget http://redis.googlecode.com/files/redis-2.0.0.tar.gz
8
+ tar -zxf redis-2.0.0.tar.gz
9
+ mv redis-2.0.0 redis
10
10
  cd redis
11
11
  make
12
12
 
@@ -14,6 +14,29 @@ Install the gem
14
14
 
15
15
  sudo gem install redis-store
16
16
 
17
+ ## Options
18
+ There are two ways to configure the Redis server options: by an URI string and by an hash.
19
+ By default each store try to connect on `localhost` with the port `6379` and the db `0`.
20
+
21
+ ### String
22
+
23
+ "redis://:secret@192.168.1.100:23682/13/theplaylist"
24
+
25
+ host: 192.168.1.100
26
+ port: 23682
27
+ db: 13
28
+ namespace: theplaylist
29
+ password: secret
30
+
31
+ If you want to specify the `namespace` optional, you have to pass the `db` param too.
32
+ #### __Important__: for now (beta3) `namespace` is only supported for single, non-distributed stores.
33
+
34
+ ### Hash
35
+
36
+ { :host => 192.168.1.100, :port => 23682, :db => 13, :namespace => "theplaylist", :password => "secret" }
37
+
38
+ #### __Important__: for now (beta3) `namespace` is only supported for single, non-distributed stores.
39
+
17
40
  ## Cache store
18
41
 
19
42
  Provides a cache store for your Ruby web framework of choice.
@@ -26,16 +49,18 @@ Provides a cache store for your Ruby web framework of choice.
26
49
  ### Rails 3.x
27
50
 
28
51
  # Gemfile
29
- gem 'rails', '3.0.0.beta4'
52
+ gem 'rails', '3.0.0'
30
53
  gem 'redis'
31
- gem 'redis-store', '1.0.0.beta2'
54
+ gem 'redis-store', '1.0.0.beta3'
32
55
 
33
56
  # config/environments/production.rb
34
57
  config.cache_store = :redis_store
35
58
 
59
+ For advanced configurations scenarios please visit [the wiki](http://wiki.github.com/jodosha/redis-store/rails).
60
+
36
61
  ### Merb
37
62
 
38
- dependency "redis-store", "1.0.0.beta2"
63
+ dependency "redis-store", "1.0.0.beta3"
39
64
  dependency("merb-cache", merb_gems_version) do
40
65
  Merb::Cache.setup do
41
66
  register(:redis, Merb::Cache::RedisStore, :servers => ["127.0.0.1:6379"])
@@ -73,16 +98,18 @@ Provides a Redis store for Rack::Session. See [http://rack.rubyforge.org/doc/Rac
73
98
  ### Rails 3.x
74
99
 
75
100
  # Gemfile
76
- gem 'rails', '3.0.0.beta4'
101
+ gem 'rails', '3.0.0'
77
102
  gem 'redis'
78
- gem 'redis-store', '1.0.0.beta2'
103
+ gem 'redis-store', '1.0.0.beta3'
79
104
 
80
105
  # config/initializers/session_store.rb
81
- Rails.application.config.session_store :redis_session_store
106
+ MyApp::Application.config.session_store :redis_session_store
107
+
108
+ For advanced configurations scenarios please visit [the wiki](http://wiki.github.com/jodosha/redis-store/rails).
82
109
 
83
110
  ### Merb
84
111
 
85
- dependency "redis-store", "1.0.0.beta2"
112
+ dependency "redis-store", "1.0.0.beta3"
86
113
  Merb::Config.use do |c|
87
114
  c[:session_store] = "redis"
88
115
  end
@@ -117,20 +144,28 @@ Provides a Redis store for HTTP caching. See [http://github.com/rtomayko/rack-ca
117
144
  :entitystore => 'redis://localhost:6380/1'
118
145
  run Application.new
119
146
 
147
+ ## I18n
148
+
149
+ require "i18n"
150
+ require "redis-store"
151
+ I18n.backend = I18n::Backend::Redis.new
152
+
153
+ The backend accepts the uri string and hash options.
154
+
120
155
  ## Running specs
121
156
 
122
157
  gem install jeweler bundler
123
158
  git clone git://github.com/jodosha/redis-store.git
124
159
  cd redis-store
125
160
  bundle install
126
- REDIS_STORE_ENV=rails3 bundle install # to install Rails 3.x gems
161
+ REDIS_STORE_ENV=rails3 bundle install # to install Rails 3 gems
127
162
  rake dtach:install
128
163
  rake redis:install
129
164
  rake
130
- REDIS_STORE_ENV=rails3 rake # to test against Rails 3.x
165
+ REDIS_STORE_ENV=rails3 rake # to test against Rails 3
131
166
 
132
167
  If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle install`
133
168
 
134
169
  ## Copyright
135
170
 
136
- (c) 2010 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
171
+ (c) 2009 - 2010 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license