Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler Rails cache store configuration #12

Open
zmillman opened this issue May 2, 2014 · 2 comments
Open

Simpler Rails cache store configuration #12

zmillman opened this issue May 2, 2014 · 2 comments

Comments

@zmillman
Copy link
Collaborator

zmillman commented May 2, 2014

If feels kind of verbose to create a Dalli::ElastiCache instance, get a list of servers, then use a :dalli_store for the actual application store in production.rb.

I don't know how tricky wrapping ActiveSupport::Cache::DalliStore is, but my ideal configuration would look something more like this:

# in config/environments/production.rb

config.cache_store = :dalli_elasticache_store, "my-cluster.cfg.use1.cache.amazonaws.com:11211", {:expires_in => 1.day}

Other thoughts: Should the store default to reading the endpoint configuration from a config/dalli-elasticache.yml file or be configured in an initializer?

@dlackty
Copy link

dlackty commented May 20, 2014

👍 for this.

@fredrik
Copy link

fredrik commented Jan 13, 2015

👍

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

No branches or pull requests

3 participants