Skip to content

Commit

Permalink
Fix compression option
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Nov 17, 2011
1 parent 8c6c5f5 commit 3701477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ In `config/environments/production.rb`:
A more comprehensive example (note that we are setting a reasonable default for maximum cache entry lifetime (one day), enabling compression for large values, and namespacing all entries for this rails app. Remove the namespace if you have multiple apps which share cached values):

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

To use Dalli for Rails session storage, in `config/initializers/session_store.rb`:

Expand Down

0 comments on commit 3701477

Please sign in to comment.