Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

memcache

  • Loading branch information...
commit 40b9910d78cabca78c993dd1788e65d331c2c141 1 parent 1b1b827
@stefl authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  Gemfile
  2. +2 −0  Gemfile.lock
  3. +2 −0  app/app.rb
View
1  Gemfile
@@ -19,6 +19,7 @@ gem 'json'
# Padrino Stable Gem
gem 'padrino', '0.10.5'
+gem 'dalli'
# Or Padrino Edge
# gem 'padrino', :git => 'git://github.com/padrino/padrino-framework.git'
View
2  Gemfile.lock
@@ -8,6 +8,7 @@ GEM
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
+ dalli (2.0.5)
diff-lcs (1.1.3)
fssm (0.2.9)
grit (2.4.1)
@@ -87,6 +88,7 @@ PLATFORMS
DEPENDENCIES
compass (= 0.12.2.rc.0)
+ dalli
haml
json
padrino (= 0.10.5)
View
2  app/app.rb
@@ -5,6 +5,8 @@ class YeBay < Padrino::Application
enable :sessions
+ set :cache, Padrino::Cache::Store::Memcache.new(::Dalli::Client.new())
+
##
# Caching support
#
Please sign in to comment.
Something went wrong with that request. Please try again.