Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

memcachier

  • Loading branch information...
commit 7d6778dbe2ea9a28610d8719ad1baa7dd50002ac 1 parent d96e0f7
Mislav Marohnić authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app.rb
4 app.rb
View
@@ -8,6 +8,10 @@
bootstrap_root = File.expand_path('bootstrap', settings.root)
use Rack::Static, urls: %w[/img], root: bootstrap_root
+ENV['MEMCACHE_SERVERS'] ||= ENV['MEMCACHIER_SERVERS']
+ENV['MEMCACHE_USERNAME'] ||= ENV['MEMCACHIER_USERNAME']
+ENV['MEMCACHE_PASSWORD'] ||= ENV['MEMCACHIER_PASSWORD']
+
configure :production do
require 'rack/cache'
use Rack::Cache,
Please sign in to comment.
Something went wrong with that request. Please try again.