Skip to content

Instantly share code, notes, and snippets.

@agibralter
Created June 10, 2010 19:14
Show Gist options
  • Select an option

  • Save agibralter/433483 to your computer and use it in GitHub Desktop.

Select an option

Save agibralter/433483 to your computer and use it in GitHub Desktop.
# Using bundler 1.0.0.beta.2 now.
source :gemcutter
gem "rack", "1.1.0"
gem "rails", "2.3.8"
# ...
gem "redis", "2.0.3"
gem "redis-store", "1.0.0.beta2"
# ...
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.action_controller.session_store = :redis_session_store
config.action_controller.session = { :servers => ..., :domain => ... }
# I don't know if this is necessary, but it works...
require 'redis-store'
config.cache_store = :redis_store, ["localhost", ...]
end
@jodosha

jodosha commented Jul 8, 2010

Copy link
Copy Markdown

Fixed in http://github.com/jodosha/redis-store/commit/c4d09cc376fe070941835489fc8549fd40fddb28, but not included in the beta2, i'm planning to fix few issues and release a beta3 in this weekend.

For now, just clone and build the gem against the HEAD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment