Skip to content

Instantly share code, notes, and snippets.

@namusyaka
Created July 21, 2013 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namusyaka/6048717 to your computer and use it in GitHub Desktop.
Save namusyaka/6048717 to your computer and use it in GitHub Desktop.
module Sandbox
class App < Padrino::Application
register Padrino::Helpers
register Padrino::Cache
enable :caching
get :test, "/test/:test_id", :cache => true do |test_id|
cache_key test_id
test_id
end
end
end
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment