Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

memcache in production

  • Loading branch information...
commit 80488ca77b11d606f2b749012ed799f97c47858c 1 parent 69d837d
@mislav authored
Showing with 6 additions and 3 deletions.
  1. +1 −0  Gemfile
  2. +2 −0  Gemfile.lock
  3. +3 −3 app.rb
View
1  Gemfile
@@ -5,6 +5,7 @@ gem 'thin'
gem 'activesupport'
gem 'i18n' # stupid activesupport dependency
gem 'rack-cache'
+gem 'dalli'
group :development do
gem 'shotgun'
View
2  Gemfile.lock
@@ -10,6 +10,7 @@ GEM
execjs
coffee-script-source (1.3.1)
daemons (1.1.8)
+ dalli (2.0.3)
data_objects (0.10.8)
addressable (~> 2.1)
dm-core (1.2.0)
@@ -61,6 +62,7 @@ PLATFORMS
DEPENDENCIES
activesupport
coffee-script
+ dalli
dm-migrations
dm-postgres-adapter
dm-timestamps
View
6 app.rb
@@ -21,9 +21,9 @@
configure :production do
require 'rack/cache'
use Rack::Cache,
- :verbose => true,
- :metastore => "file:#{ENV['TMPDIR']}/rack/meta",
- :entitystore => "file:#{ENV['TMPDIR']}/rack/body"
+ verbose: true,
+ metastore: 'memcached://localhost/meta',
+ entitystore: 'memcached://localhost/body?compress=true'
end
require 'dm-core'
Please sign in to comment.
Something went wrong with that request. Please try again.