Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

How to specify configuration when using ENV? #285

Closed
jjb opened this Issue · 1 comment

2 participants

@jjb

The readme says to specify the configuration like this:

config.cache_store = :dalli_store, 'cache-1.example.com', 'cache-2.example.com',
  { :namespace => NAME_OF_RAILS_APP, :expires_in => 1.day, :compress => true }

What about when hosting on Heroku where the servers are specified in ENV, how can the other options be specified? Put nil for the servers? :dalli_store, nil, {foo:bar}

I'll make a PR for the readme after I figure this out... Thanks!

I'm on rails 3.2

@mperham mperham closed this
@jjb jjb referenced this issue from a commit in jjb/dalli
@jjb jjb docs for config alongside ENV["MEMCACHE_SERVERS"]
documentation addressing question in #285
c2347ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.