Module: Sinatra::MemCache
- Defined in:
- lib/sinatra/memcache.rb
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/sinatra/memcache.rb', line 127 def self.registered(app) app.helpers MemCache::Helpers app.set :cache_client, nil app.set :cache_server, "localhost:11211" app.set :cache_namespace, "sinatra-memcache" app.set :cache_enable, true app.set :cache_logging, true app.set :cache_default_expiry, 3600 app.set :cache_default_compress, false end |